:root {
  --primary: #D4AF37;
  /* Metallic Gold */
  --primary-hover: #B8860B;
  /* Darker Gold */
  --secondary: #1A1A1A;
  /* Deep Black */
  --dark: #0F0F0F;
  --light: #FBFBFB;
  --white: #FFFFFF;
  --border: #E8E8E8;
  --text-main: #2C2C2C;
  --text-muted: #8E8E8E;
  --danger: #990000;
  --gold-gradient: linear-gradient(135deg, #FFD700, #DAA520, #B8860B);
  --dark-luxury: linear-gradient(135deg, #1f1f1f, #000000);
  --radius: 4px;
  /* More elegant, less bubbly */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 1.2rem 0;
}

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

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

.nav-link {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  transition: var(--transition);
  color: #555;
}

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

/* Cart Animation */
@keyframes cartBounce {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

.cart-badge.animate {
  animation: cartBounce 0.5s ease;
  background-color: var(--primary) !important;
}

/* Luxury Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--dark-luxury);
  padding: 4rem;
  border-radius: 4px;
  border: 1px solid var(--primary);
  max-width: 500px;
  width: 90%;
  text-align: center;
  color: white;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-choices {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  background: var(--secondary);
  color: white;
  padding: 1.5rem 2.5rem;
  border-left: 4px solid var(--primary);
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--secondary);
  font-weight: 800;
  text-decoration: none;
}

/* Typography */
.title-modern {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2.5rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

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

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

/* Product Card */
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  animation: float 6s ease-in-out infinite;
}

.product-card:nth-child(even) {
  animation-delay: 1s;
}

.product-card:nth-child(3n) {
  animation-delay: 2s;
}

.product-card:hover {
  transform: translateY(-20px) scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  animation-play-state: paused;
}

.product-img-wrapper {
  position: relative;
  padding-top: 110%;
  background-color: #fdfdfd;
  overflow: hidden;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
  transition: var(--transition);
}

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

.product-info {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #f9f9f9;
}

/* Category Pills */
.category-pills {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.cat-pill {
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: #888;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.cat-pill:hover,
.cat-pill.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Admin Styling */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 4px;
  overflow: hidden;
}

.admin-table th {
  background: #f4f4f4;
  padding: 1rem;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.admin-img-preview {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

/* Form Control */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

/* Cart */
.cart-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--secondary);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
}

/* Responsive Overhaul */
@media (max-width: 1100px) {
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .title-modern {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  /* Could add a mobile menu later */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .title-modern {
    font-size: 2.2rem;
  }

  .hero-section {
    padding: 5rem 0 !important;
  }

  .container {
    width: 92%;
  }

  .category-pills {
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .cat-pill {
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .title-modern {
    font-size: 1.8rem;
  }

  .btn {
    width: 100%;
  }
}