@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Design System Variables --- */
:root {
  --bg-dark: #0a0907;
  --bg-card: #151310;
  --bg-card-hover: #1c1915;
  --primary: #cda274;
  --primary-rgb: 205, 162, 116;
  --primary-hover: #e4be93;
  --accent: #e4a853;
  --text-light: #f4f1de;
  --text-muted: #a7a496;
  --border-color: rgba(205, 162, 116, 0.15);
  --border-color-hover: rgba(205, 162, 116, 0.3);
  --glow-shadow: 0 0 20px rgba(205, 162, 116, 0.15);
  --glow-shadow-strong: 0 0 30px rgba(205, 162, 116, 0.3);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --header-height: 80px;
}

/* --- Base Resets & Styling --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-dark);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.text-gold {
  color: var(--primary);
}

/* --- Layout Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

.section-title-wrapper {
  margin-bottom: 50px;
  text-align: center;
}

.subtitle {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 42px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--primary);
  margin: 15px auto 0;
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background-color: rgba(10, 9, 7, 0.95);
  backdrop-filter: blur(10px);
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo .gold {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Mobile Nav Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--primary);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--primary);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--bg-card);
  z-index: 999;
  padding: 100px 40px 40px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  border-left: 1px solid var(--border-color);
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-links a {
  font-size: 20px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--primary);
  padding-left: 10px;
}

.mobile-drawer-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

/* Overlay */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
}

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

/* --- Premium Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-dark);
  box-shadow: var(--glow-shadow);
  border: 1px solid var(--primary);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.6s;
  z-index: -1;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary);
  box-shadow: var(--glow-shadow-strong);
}

.btn-primary:hover::before {
  left: 100%;
}

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--glow-shadow);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 12px;
}

/* --- Floating Quick Actions --- */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 99;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
  position: relative;
}

.float-order {
  background-color: var(--primary);
  color: var(--bg-dark);
  box-shadow: var(--glow-shadow);
  animation: floatPulse 2s infinite;
}

.float-order:hover {
  background-color: var(--primary-hover);
  transform: scale(1.1) translateY(-3px);
  box-shadow: var(--glow-shadow-strong);
}

.float-order i {
  font-size: 20px;
}

.float-order .cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background-color: var(--accent);
  color: var(--bg-dark);
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
}

.back-to-top {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--primary);
  color: var(--text-light);
  transform: scale(1.1) translateY(-3px);
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  color: var(--text-light);
  transition: var(--transition-fast);
  font-size: 15px;
}

.form-control:focus {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: var(--glow-shadow);
}

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

select.form-control option {
  background-color: var(--bg-card);
  color: var(--text-light);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-group input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* --- Modals (Global) --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  z-index: 1;
  transform: scale(0.9);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--primary);
}

.modal-title {
  font-size: 32px;
  margin-bottom: 12px;
  text-align: center;
}

.modal-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 30px;
}

/* --- Footer --- */
footer {
  background-color: #080705;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-info .footer-desc {
  color: var(--text-muted);
  margin: 20px 0;
  max-width: 320px;
  font-size: 15px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition-smooth);
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-3px);
  box-shadow: var(--glow-shadow);
}

.footer-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-light);
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
  margin-top: 8px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: var(--text-muted);
  font-size: 15px;
}

.footer-contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact-list i {
  color: var(--primary);
  margin-top: 4px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-input-wrapper {
  display: flex;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.02);
}

.newsletter-input-wrapper .form-control {
  border: none;
  background: none;
  padding: 12px 16px;
}

.newsletter-btn {
  background-color: var(--primary);
  color: var(--bg-dark);
  padding: 0 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.newsletter-btn:hover {
  background-color: var(--primary-hover);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 20px;
}

/* --- Reveal Animations --- */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Global Cart Drawer --- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--bg-card);
  z-index: 1050;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  border-left: 1px solid var(--border-color);
}

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

.cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

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

.cart-header h3 {
  font-size: 24px;
}

.cart-close {
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

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

.cart-body {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
}

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

.cart-item {
  display: flex;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

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

.cart-item-name {
  font-family: var(--font-heading);
  font-size: 16px;
  margin-bottom: 4px;
}

.cart-item-price {
  color: var(--primary);
  font-size: 14px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.qty-val {
  font-size: 14px;
}

.cart-item-remove {
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 16px;
}

.cart-item-remove:hover {
  color: #ff4d4d;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.2);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 16px;
}

.cart-total-label {
  font-weight: 600;
}

.cart-total-price {
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
}

.cart-checkout-btn {
  width: 100%;
}

/* Font Awesome Icons Support & Animation keyframes */
@keyframes floatPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(205, 162, 116, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(205, 162, 116, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(205, 162, 116, 0);
  }
}

/* --- Media Queries --- */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .section-title {
    font-size: 32px;
  }
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .section-padding {
    padding: 70px 0;
  }
}
