/* Coaxx Static Website - Main Styles */
/* Using inline Tailwind-inspired utility classes */

:root {
  --background: #ffffff;
  --foreground: #1a1a1a;
  --primary: #dc2626; /* Deep Red */
  --secondary: #d97706; /* Luminous Gold */
  --accent: #374151; /* Charcoal Grey */
  --dark-accent: #111827; /* Darker charcoal */
  --off-white: #f9fafb;
  --deep-plum: #581c87;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

/* Focus states for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hot-ticker {
  background: linear-gradient(to right, #dc2626, #d97706, #dc2626);
  color: white;
  padding: 0.5rem 0;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: flex;
  gap: 2rem;
  animation: scroll-left 30s linear infinite;
  white-space: nowrap;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.ticker-badge {
  background: white;
  color: #dc2626;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: bold;
}

.header-nav {
  border-bottom: 1px solid #e5e7eb;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.logo-co { color: #dc2626; }
.logo-ax { color: #d97706; }
.logo-x { color: #374151; }

.nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: #374151;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #dc2626;
}

.search-form {
  display: none;
  flex: 1;
  max-width: 28rem;
  margin: 0 2rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.search-input:focus {
  outline: none;
  ring: 2px solid #dc2626;
  border-color: transparent;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-button {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: #dc2626;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 9999px;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-button {
  display: block;
  color: #374151;
}

.mobile-menu {
  display: none;
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
}

.mobile-menu.open {
  display: block;
}

.mobile-search-form {
  margin-bottom: 1rem;
  position: relative;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-links a {
  padding: 0.5rem 1rem;
  color: #374151;
  border-radius: 0.25rem;
  transition: background 0.2s;
}

.mobile-nav-links a:hover {
  background: #f3f4f6;
}

/* Footer Styles */
footer {
  background: #111827;
  color: #d1d5db;
  margin-top: auto;
}

.footer-content {
  padding: 3rem 1rem;
}

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

.footer-brand {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-brand .logo-x {
  color: white;
}

.footer-section h3 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  text-center;
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Under Construction Modal */
.construction-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.construction-gate.show {
  display: flex;
}

.construction-gate-content {
  background: linear-gradient(135deg, #111827 0%, #581c87 50%, #dc2626 100%);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-width: 36rem;
  width: 100%;
  padding: 3rem 2rem;
  text-align: center;
  border: 2px solid rgba(220, 38, 38, 0.3);
}

.construction-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.construction-gate h2 {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.construction-gate p {
  color: #d1d5db;
  margin-bottom: 2rem;
  line-height: 1.75;
  font-size: 1.125rem;
}

.construction-password-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.construction-password-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s;
}

.construction-password-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.construction-password-input:focus {
  outline: none;
  border-color: #fcd34d;
  background: rgba(255, 255, 255, 0.15);
}

.construction-submit-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: #fcd34d;
  color: #111827;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
  transition: all 0.2s;
  cursor: pointer;
}

.construction-submit-btn:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(252, 211, 77, 0.3);
}

.construction-error {
  color: #fca5a5;
  font-weight: 600;
  margin-top: 0.5rem;
  display: none;
}

.construction-error.show {
  display: block;
}

.construction-blur-bg {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

/* Age Gate Modal */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.age-gate.show {
  display: flex;
}

.age-gate-content {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 28rem;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.age-gate-logo {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.age-gate h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 1rem;
}

.age-gate p {
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.age-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-confirm {
  width: 100%;
  padding: 1rem 1.5rem;
  background: #dc2626;
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.btn-confirm:hover {
  background: #b91c1c;
}

.btn-decline {
  width: 100%;
  padding: 1rem 1.5rem;
  background: #e5e7eb;
  color: #374151;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.btn-decline:hover {
  background: #d1d5db;
}

.age-gate-legal {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 1.5rem;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Product Card */
.product-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image-container {
  position: relative;
  aspect-ratio: 1;
  background: #f3f4f6;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-deal { background: #dc2626; color: white; }
.badge-new { background: #f59e0b; color: white; }
.badge-low-stock { background: #d97706; color: white; }
.badge-sold-out { background: #1f2937; color: white; }

.product-info {
  padding: 1rem;
}

.product-name {
  font-weight: 600;
  color: #111827;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.product-prices {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-original {
  color: #6b7280;
  text-decoration: line-through;
  font-size: 0.875rem;
}

.price-current {
  font-weight: bold;
  font-size: 1.125rem;
  color: #111827;
}

.price-sale {
  color: #dc2626;
}

.add-to-cart-btn {
  padding: 0.5rem;
  background: #dc2626;
  color: white;
  border-radius: 9999px;
  transition: all 0.2s;
}

.add-to-cart-btn:hover {
  background: #b91c1c;
  transform: scale(1.1);
}

.add-to-cart-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s;
  gap: 0.5rem;
}

.btn-primary {
  background: #dc2626;
  color: white;
}

.btn-primary:hover {
  background: #b91c1c;
}

.btn-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-secondary:hover {
  background: white;
  color: #dc2626;
}

.btn-outline {
  border: 2px solid #d1d5db;
  color: #374151;
}

.btn-outline:hover {
  border-color: #dc2626;
  color: #dc2626;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .search-form {
    display: flex;
  }

  .mobile-menu-button {
    display: none;
  }

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

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

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Utility Classes */
.hidden { display: none; }
.flex { display: flex; }
.grid { display: grid; }
.text-center { text-align: center; }
.text-red { color: #dc2626; }
.text-amber { color: #d97706; }
.text-gray { color: #6b7280; }
.font-bold { font-weight: bold; }
.font-semibold { font-weight: 600; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.rounded { border-radius: 0.5rem; }
.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 250px;
  animation: slideIn 0.3s ease-out;
}

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

.toast-success {
  border-left: 4px solid #10b981;
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-message {
  flex: 1;
  color: #111827;
  font-weight: 500;
}
