@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --color-steel-900: #132230;
  --color-steel-800: #1D3347;
  --color-steel-700: #294762;
  --color-steel-600: #386082;
  --color-steel-500: #4682B4; /* Classic Steel Blue */
  --color-steel-400: #689ECA;
  --color-steel-300: #93BCDE;
  --color-steel-200: #C2DBEE;
  --color-steel-100: #E6F0F7;
  --color-steel-50: #F3F8FB;

  --color-slate-900: #0F172A;
  --color-slate-800: #1E293B;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748B; /* Muted Slate */
  --color-slate-400: #94A3B8;
  --color-slate-200: #E2E8F0;
  --color-slate-100: #F1F5F9;
  --color-slate-50: #F8FAFC;

  --color-pure-white: #FFFFFF;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--color-slate-800);
  background-color: var(--color-pure-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography styles */
.font-display {
  font-family: var(--font-display);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--color-steel-50);
}

::-webkit-scrollbar-thumb {
  background: var(--color-steel-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-steel-600);
}

/* Monochromatic Theme Utilites */
.bg-steel-50 { background-color: var(--color-steel-50); }
.bg-steel-100 { background-color: var(--color-steel-100); }
.bg-steel-500 { background-color: var(--color-steel-500); }
.bg-steel-600 { background-color: var(--color-steel-600); }
.bg-steel-700 { background-color: var(--color-steel-700); }
.bg-steel-800 { background-color: var(--color-steel-800); }
.bg-steel-900 { background-color: var(--color-steel-900); }

.text-steel-400 { color: var(--color-steel-400); }
.text-steel-500 { color: var(--color-steel-500); }
.text-steel-600 { color: var(--color-steel-600); }
.text-steel-700 { color: var(--color-steel-700); }
.text-steel-800 { color: var(--color-steel-800); }
.text-steel-900 { color: var(--color-steel-900); }

.border-steel-100 { border-color: var(--color-steel-100); }
.border-steel-200 { border-color: var(--color-steel-200); }
.border-steel-300 { border-color: var(--color-steel-300); }
.border-steel-500 { border-color: var(--color-steel-500); }
.border-steel-600 { border-color: var(--color-steel-600); }

.bg-slate-50 { background-color: var(--color-slate-50); }
.bg-slate-100 { background-color: var(--color-slate-100); }
.text-slate-500 { color: var(--color-slate-500); }
.text-slate-600 { color: var(--color-slate-600); }
.text-slate-700 { color: var(--color-slate-700); }
.text-slate-800 { color: var(--color-slate-800); }
.text-slate-900 { color: var(--color-slate-900); }
.border-slate-200 { border-color: var(--color-slate-200); }

/* Logo Styling */
.brand-logo-text {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
}

/* Product Card & Standard Uniform Image Sizing */
.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #FAFAFA;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--color-slate-200);
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-container img {
  transform: scale(1.04);
}

/* Glass & Backdrop Filters */
.backdrop-glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-steel-800);
  color: var(--color-pure-white);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid var(--color-steel-800);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--color-steel-700);
  border-color: var(--color-steel-700);
  box-shadow: 0 4px 14px rgba(41, 71, 98, 0.22);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-steel-50);
  color: var(--color-steel-800);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid var(--color-steel-200);
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--color-steel-100);
  border-color: var(--color-steel-300);
  color: var(--color-steel-900);
}

/* Drawers & Modals */
.drawer-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-panel.active {
  transform: translateX(0%);
}

.modal-dialog {
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Badge */
.badge-steel {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background-color: var(--color-steel-100);
  color: var(--color-steel-700);
  border: 1px solid var(--color-steel-200);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 90vw;
  width: 380px;
}

.toast-item {
  pointer-events: auto;
  background: var(--color-steel-900);
  color: var(--color-pure-white);
  padding: 0.875rem 1.25rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  box-shadow: 0 10px 25px -5px rgba(19, 34, 48, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  animation: slideToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border-left: 4px solid var(--color-steel-400);
}

@keyframes slideToast {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile-First layout constraints */
@media (max-width: 640px) {
  .product-image-container {
    aspect-ratio: 1 / 1;
  }
  #toast-container {
    left: 1rem;
    right: 1rem;
    width: auto;
    bottom: 1rem;
  }
}
