/* Dreams Parfum – Refined Edition */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --bg: #0d0d0d;
  --bg-soft: #141414;
  --bg-card: #181818;
  --gold: #b89b5e;
  --gold-light: #d4bc8a;
  --gold-pale: #e8dcc4;
  --text: #f4f1ea;
  --text-soft: #b0a99c;
  --text-muted: #7a746a;
  --line: #2a2a2a;
  --line-gold: rgba(184, 155, 94, 0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

h1, h2, h3, h4, .logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ===== HEADER ===== */
header {
  background: rgba(13, 13, 13, 0.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.55rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 2.8rem;
}

nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--gold-light);
}

/* ===== HERO ===== */
.hero {
  height: 92vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: 
    linear-gradient(to bottom, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.82) 100%),
    url('https://images.unsplash.com/photo-1595425970375-c81fa8f731ab?auto=format&fit=crop&w=2000&q=90') center 40%/cover no-repeat;
}

.hero-content {
  max-width: 680px;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.hero-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2rem;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
  font-weight: 400;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 420px;
  margin: 0 auto 2.8rem;
  font-weight: 300;
  line-height: 1.8;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 1.05rem 2.8rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.68rem;
  transition: all 0.4s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  background: var(--gold);
  color: #0d0d0d;
}

.btn-filled {
  background: var(--gold);
  color: #0d0d0d;
}

.btn-filled:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-ghost {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

/* ===== SECTIONS ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  font-weight: 400;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: 0.06em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 440px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
}

/* ===== PRODUCTS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: all 0.45s ease;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--line-gold);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}

.product-img {
  height: 360px;
  background: #111;
  overflow: hidden;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-badge {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  font-weight: 400;
}

.product-info {
  padding: 1.8rem 1.5rem 2rem;
  text-align: center;
}

.product-info .brand {
  font-size: 0.62rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.product-info .notes {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
}

.product-info .price {
  font-size: 1.05rem;
  color: var(--gold-light);
  font-weight: 400;
  margin-bottom: 1.4rem;
  letter-spacing: 0.04em;
}

.product-info .btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 0.65rem;
}

/* ===== PHILOSOPHY STRIP ===== */
.philosophy {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 6.5rem 2.5rem;
  text-align: center;
}

.philosophy .inner {
  max-width: 640px;
  margin: 0 auto;
}

.philosophy h2 {
  font-size: 2.4rem;
  margin-bottom: 1.4rem;
  color: var(--text);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.25;
}

.philosophy p {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-bottom: 2.6rem;
  line-height: 1.85;
  font-weight: 300;
}

/* ===== VALUES ===== */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.value-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.value-item .divider {
  width: 24px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.4rem;
}

.value-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
}

/* ===== AUTH ===== */
.auth-wrapper {
  max-width: 420px;
  margin: 5rem auto 6rem;
  padding: 0 1.5rem;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 3.4rem 2.6rem;
  margin-bottom: 2rem;
}

.auth-card h2 {
  text-align: center;
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 300;
  letter-spacing: 0.06em;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.6rem;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.95rem 1rem;
  background: #101010;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.auth-links {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-links a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s;
}

.auth-links a:hover {
  color: var(--gold-light);
}

.full-width {
  width: 100%;
  text-align: center;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4.5rem;
  max-width: 1040px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h3 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.contact-info .detail {
  margin-bottom: 2.5rem;
}

.contact-info p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
}

.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 2.6rem;
}

/* ===== FOOTER ===== */
footer {
  background: #0a0a0a;
  border-top: 1px solid var(--line);
  padding: 4rem 2.5rem 2.8rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: 0.35em;
  margin-bottom: 1.6rem;
  font-weight: 400;
  text-transform: uppercase;
}

.footer-links {
  margin-bottom: 1.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  color: #555;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 300;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .values { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1.3rem;
    padding: 1.3rem 1.5rem;
  }
  nav ul {
    gap: 1.6rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero { height: 80vh; min-height: 540px; }
  .section { padding: 4.5rem 1.5rem; }
  .form-row { flex-direction: column; gap: 0; }
  .auth-card { padding: 2.6rem 1.8rem; }
  .philosophy { padding: 4.5rem 1.5rem; }
}

/* ===== CART ICON & TOAST ===== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cart-link {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.cart-link:hover {
  color: var(--gold-light);
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -14px;
  background: var(--gold);
  color: #0d0d0d;
  font-size: 0.65rem;
  font-weight: 500;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--line-gold);
  color: var(--text);
  padding: 0.9rem 1.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: all 0.35s ease;
  z-index: 2000;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== CART PAGE ===== */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.5rem;
}

.cart-table th {
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  padding: 0 0 1.2rem;
  border-bottom: 1px solid var(--line);
}

.cart-table td {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.cart-product img {
  width: 80px;
  height: 100px;
  object-fit: cover;
}

.cart-product h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  font-weight: 400;
}

.cart-product .remove {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
  padding: 0;
  font-family: inherit;
}

.cart-product .remove:hover {
  color: var(--gold);
}

.qty-input {
  width: 60px;
  padding: 0.5rem;
  background: #101010;
  border: 1px solid var(--line);
  color: var(--text);
  text-align: center;
  font-family: inherit;
}

.cart-summary {
  max-width: 360px;
  margin-left: auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 2rem;
}

.cart-summary h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.summary-row.total {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
  color: var(--text);
}

.summary-row.total span:last-child {
  color: var(--gold-light);
}

.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.cart-empty a {
  color: var(--gold);
  text-decoration: none;
}

/* ===== CHECKOUT ===== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 3.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.checkout-form h3,
.checkout-summary h3 {
  font-size: 1.35rem;
  margin-bottom: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 2rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.checkout-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.checkout-item img {
  width: 60px;
  height: 75px;
  object-fit: cover;
}

.checkout-item h4 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.checkout-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.payment-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  line-height: 1.6;
}

.success-box {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 520px;
  margin: 0 auto;
}

.success-box h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.success-box p {
  color: var(--text-soft);
  margin-bottom: 2rem;
}

@media (max-width: 800px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) {
    display: none;
  }
}
