/*
 * styles.css
 * External stylesheet for Premier Mining & Metals Trading Company
 *
 * Color Palette: Professional mining/industrial theme
 * - Deep slate/charcoal base with gold accents
 * - Steel blue and warm copper secondary colors
 * - Neutral grays for text and backgrounds
 *
 * To customize:
 * 1. Modify CSS variables in :root for color scheme
 * 2. Adjust spacing values (8px system used throughout)
 * 3. Update typography by changing font stacks
 * 4. Theme variants available via --light-* variables
 */

:root {
  --bg: #0f1419;
  --surface: #1a1f29;
  --surface-elevated: #242b38;
  --text: #e8eaed;
  --text-secondary: #b8bcc2;
  --muted: #7d8590;

  --primary: #4a5568;
  --primary-hover: #5a6678;
  --secondary: #2d3748;

  --accent: #d19e10;
  --accent-hover: #f1dc1c;
  --accent-2: #579b4a;
  --accent-2-hover: #50e43c;

  --success: #48bb78;
  --warning: #ed8936;
  --danger: #f56565;

  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;

  --light-bg: #ffffff;
  --light-surface: #f9fafb;
  --light-text: #1a202c;
  --light-text-secondary: #4a5568;

  --border-radius: 8px;
  --border-radius-sm: 4px;
  --border-radius-lg: 12px;

  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  line-height: 1.65;
}

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

a:hover {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-lg);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
}

.logo-icon {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.hamburger {
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: all var(--transition-fast);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-xl);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: var(--spacing-sm) 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    padding: var(--spacing-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  }
}

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-3xl) var(--spacing-lg);
  background: linear-gradient(135deg, rgba(15, 20, 25, 0.9) 0%, rgba(26, 31, 41, 0.95) 100%),
              url('https://images.unsplash.com/photo-1565611367229-7f5bd1a05a83?w=1600&h=900&fit=crop&q=80') center/cover;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

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

.hero-title {
  margin-bottom: var(--spacing-lg);
  color: var(--text);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-2xl);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #1a1f29;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 25px rgba(212, 175, 55, 0.4);
  color: #1a1f29;
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-secondary:hover {
  background: var(--primary);
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.quick-facts {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
  padding: var(--spacing-xl);
  background: rgba(26, 31, 41, 0.6);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(10px);
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  text-align: left;
}

.fact-item strong {
  color: var(--accent);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fact-item span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.capabilities {
  padding: var(--spacing-3xl) 0;
  background: var(--surface);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.capability-card {
  padding: var(--spacing-xl);
  background: var(--surface-elevated);
  border-radius: var(--border-radius);
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: all var(--transition-normal);
}

.capability-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.capability-icon {
  margin-bottom: var(--spacing-md);
  color: var(--accent);
}

.capability-card h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

.capability-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.products-overview {
  padding: var(--spacing-3xl) 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-lg);
}

.product-card {
  display: block;
  padding: var(--spacing-xl);
  background: var(--surface);
  border-radius: var(--border-radius);
  border: 1px solid rgba(212, 175, 55, 0.1);
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.product-icon {
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
}

.product-card h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

.product-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.gallery-section {
  padding: var(--spacing-3xl) 0;
  background: var(--surface);
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  align-items: center;
  justify-content: space-between;
}

.search-wrapper {
  flex: 1;
  min-width: 250px;
}

.search-input {
  width: 100%;
  padding: 12px var(--spacing-md);
  background: var(--surface-elevated);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--border-radius);
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.filter-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.filter-select {
  padding: 10px var(--spacing-md);
  background: var(--surface-elevated);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--border-radius);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-clear {
  padding: 10px var(--spacing-md);
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.btn-clear:hover {
  background: var(--surface-elevated);
  border-color: var(--accent);
  color: var(--accent);
}

.view-toggle {
  display: flex;
  gap: var(--spacing-xs);
}

.view-btn {
  padding: var(--spacing-sm);
  background: var(--surface-elevated);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-btn:hover,
.view-btn.active {
  background: var(--accent);
  color: #1a1f29;
  border-color: var(--accent);
}

.active-filters {
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--surface-elevated);
  border-radius: var(--border-radius);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: none;
}

.active-filters.visible {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.gallery-grid.list-view {
  grid-template-columns: 1fr;
}

.gallery-item {
  background: var(--surface-elevated);
  border-radius: var(--border-radius);
  border: 1px solid rgba(212, 175, 55, 0.1);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.gallery-item-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.list-view .gallery-item {
  display: flex;
  gap: var(--spacing-lg);
}

.list-view .gallery-item-image {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
}

.gallery-item-content {
  padding: var(--spacing-md);
}

.list-view .gallery-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-item-title {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text);
}

.gallery-item-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: var(--spacing-sm);
}

.gallery-item-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
  display: none;
}

.list-view .gallery-item-description {
  display: block;
}

.gallery-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-sm);
}

.gallery-item-price {
  font-weight: 600;
  color: var(--accent);
}

.btn-details {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--border-radius-sm);
  color: var(--accent);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.btn-details:hover {
  background: var(--accent);
  color: #1a1f29;
}

.no-results {
  text-align: center;
  padding: var(--spacing-3xl);
  color: var(--muted);
}

.pricing-section {
  padding: var(--spacing-3xl) 0;
}

.pricing-note {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  font-style: italic;
}

.pricing-table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--spacing-xl);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.pricing-table thead {
  background: var(--surface-elevated);
}

.pricing-table th {
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.pricing-table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  color: var(--text-secondary);
}

.pricing-table tbody tr:hover {
  background: var(--surface-elevated);
}

.btn-quote {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--border-radius-sm);
  color: var(--accent);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.btn-quote:hover {
  background: var(--accent);
  color: #1a1f29;
}

@media (max-width: 768px) {
  .pricing-table {
    display: block;
  }

  .pricing-table thead {
    display: none;
  }

  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table td {
    display: block;
  }

  .pricing-table tr {
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
  }

  .pricing-table td {
    text-align: right;
    padding: var(--spacing-sm) 0;
    border: none;
  }

  .pricing-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: 600;
    color: var(--accent);
  }
}

.pricing-cta {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--surface-elevated);
  border-radius: var(--border-radius);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.pricing-cta p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

.contact-section {
  padding: var(--spacing-3xl) 0;
  background: var(--surface);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-2xl);
}

@media (max-width: 968px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

.contact-info h3 {
  margin-bottom: var(--spacing-md);
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  color: var(--text-secondary);
}

.contact-item svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item a {
  color: var(--text-secondary);
}

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

.contact-item address {
  font-style: normal;
  line-height: 1.6;
}

.map-placeholder {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-form-wrapper {
  background: var(--surface-elevated);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-group label {
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
}

.required {
  color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px var(--spacing-md);
  background: var(--surface);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--border-radius);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--danger);
}

.error-message {
  color: var(--danger);
  font-size: 0.85rem;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

.btn-submit {
  margin-top: var(--spacing-md);
  width: 100%;
  justify-content: center;
}

.site-footer {
  background: var(--surface-elevated);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: var(--spacing-md);
  color: var(--accent);
}

.footer-section p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.compliance-note {
  font-size: 0.85rem !important;
  color: var(--muted) !important;
  margin-top: var(--spacing-md);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

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

.footer-links a:hover {
  color: var(--accent);
  padding-left: var(--spacing-xs);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--accent);
  color: #1a1f29;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  color: var(--muted);
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.modal[hidden] {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  max-width: 1000px;
  max-height: 90vh;
  width: 100%;
  background: var(--surface-elevated);
  border-radius: var(--border-radius-lg);
  overflow-y: auto;
  animation: slideIn 0.3s ease-out;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--accent);
  color: #1a1f29;
  transform: rotate(90deg);
}

.modal-body {
  padding: var(--spacing-xl);
}

.modal-image-wrapper {
  margin-bottom: var(--spacing-lg);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.modal-image-wrapper img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.modal-details h2 {
  margin-bottom: var(--spacing-lg);
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--surface);
  border-radius: var(--border-radius);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.spec-item strong {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-item span {
  color: var(--text-secondary);
}

.modal-description {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--spacing-lg);
}

.modal-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

.modal-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.modal-nav-btn {
  padding: var(--spacing-sm);
  background: var(--surface);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--border-radius);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-nav-btn:hover {
  background: var(--accent);
  color: #1a1f29;
  border-color: var(--accent);
}

.toast {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--success);
  color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  animation: slideInRight 0.3s ease-out;
  z-index: 3000;
}

.toast[hidden] {
  display: none;
}

.toast.error {
  background: var(--danger);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .modal-content {
    max-height: 95vh;
  }

  .modal-body {
    padding: var(--spacing-md);
  }

  .modal-specs {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}