@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300;1,9..40,400&display=swap');

:root {
  /* Core palette */
  --bg-dark: #080808;
  --bg-darker: #040404;
  --bg-card: #0e0e0e;
  --bg-card-hover: #141414;
  --bg-elevated: #181818;
  --bg-light: #1c1c1c;

  /* Text */
  --text-primary: #f5f0e8;
  --text-secondary: #8a8578;
  --text-muted: #5a564e;
  --text-heading: #faf6ef;

  /* Accent */
  --accent-gold: #c9a227;
  --accent-gold-light: #dbb94d;
  --accent-gold-dark: #a68520;
  --accent-gold-glow: rgba(201, 162, 39, 0.15);
  --accent-gold-border: rgba(201, 162, 39, 0.25);
  --accent-crimson: #8b1a1a;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  /* Border */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(201, 162, 39, 0.3);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 24px rgba(201, 162, 39, 0.2);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: 105px; /* Leave space for fixed header */
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  outline: none;
}

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

/* ======================== */
/* Layout                   */
/* ======================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ======================== */
/* Typography               */
/* ======================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.15;
  font-weight: 400;
}

p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent-gold);
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.section-title em,
.section-title span {
  color: var(--accent-gold);
  font-style: italic;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 4rem;
  color: var(--text-secondary);
}

/* ======================== */
/* Buttons                  */
/* ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: var(--bg-darker);
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-outline:hover {
  background: var(--accent-gold-glow);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
}

/* ======================== */
/* Header & Fixed Nav       */
/* ======================== */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--accent-gold);
  color: #000;
  text-align: center;
  padding: 0.5rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.announcement-bar.hidden {
  display: none;
}

.announcement-close {
  position: absolute;
  right: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

/* Navbar */
.navbar {
  background-color: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  transition: all 0.3s var(--ease-out);
}

.navbar.scrolled {
  padding: 1rem 0;
  background-color: rgba(4, 4, 4, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text-heading);
}

.nav-logo span {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-btn {
  position: relative;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cart-btn:hover {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.03);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--accent-gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-toggle {
  display: none;
  color: var(--text-primary);
}

/* ======================== */
/* Footer                   */
/* ======================== */
.footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  padding: 6rem 0 3rem;
  margin-top: 8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.footer-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.footer-contact a {
  color: var(--text-primary);
  font-weight: 500;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a:hover {
  color: var(--text-secondary);
}

/* ======================== */
/* Cart Drawer (Sidebar)    */
/* ======================== */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background-color: var(--bg-card);
  border-left: 1px solid var(--border-subtle);
  z-index: 201;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right 0.4s var(--ease-out);
}

.cart-drawer-overlay.active .cart-drawer {
  right: 0;
}

.cart-drawer-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-size: 1.25rem;
}

.cart-drawer-close {
  color: var(--text-secondary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.cart-drawer-close:hover {
  color: var(--text-primary);
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-empty-message {
  text-align: center;
  margin: auto;
  color: var(--text-muted);
}

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

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

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

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.cart-item-remove {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.cart-item-remove:hover {
  color: var(--accent-crimson);
}

.cart-drawer-footer {
  padding: 2rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-darker);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.cart-subtotal-price {
  font-weight: 600;
  color: var(--accent-gold);
}

.btn-checkout {
  width: 100%;
}

/* ======================== */
/* Responsive Design        */
/* ======================== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 90px;
  }
  
  .nav-links {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--bg-darker);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: left 0.4s var(--ease-out);
    border-top: 1px solid var(--border-subtle);
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
}
