:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-panel: #EAEAEA;
  --text-primary: #111111;
  --text-secondary: #555555;
  --accent: #0055FF;
  --accent-hover: #0044CC;
  --border: #333333;
  --error: #FF3333;
  
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h1 { font-size: 3rem; line-height: 1.1; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

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

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

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

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

.cart-icon {
  position: relative;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background-color: #E0E0E0;
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

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

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

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

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
  display: flex;
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-8 { margin-top: 4rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Form Elements */
select, input[type="text"], input[type="number"], textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

select:focus, input:focus, textarea:focus {
  border-color: var(--accent);
}

label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Wizard Options (Large Rectangular Buttons) */
.wizard-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.wizard-option:hover {
  border-color: var(--text-secondary);
  background: var(--bg-panel);
}

.wizard-option.selected {
  border-color: var(--text-primary);
  background: var(--bg-panel);
}

.wizard-option h3 {
  margin: 0;
  font-size: 1.25rem;
}

.upcharge {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 200px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product-info {
  padding: 1.5rem;
}

.product-price {
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.copyright {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Radio and Checkbox specific styling */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--accent);
}

.color-circles {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.color-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}

.color-circle.selected {
  border-color: white;
  box-shadow: 0 0 0 1px var(--bg-primary);
}

/* Wizard Layout */
.wizard-layout {
  display: flex;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.wizard-sidebar {
  flex: 0 0 400px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.wizard-sidebar-image {
  width: 100%;
  height: 300px;
  background-color: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-sidebar-image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.wizard-content {
  flex: 1;
}

/* Color Circle Labels */
.color-circle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.color-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: capitalize;
}

/* Helper to center the wizard contents before it had the sidebar */
.wizard-container-full {
  width: 100%;
}

/* Mobile Menu Toggle (hidden on desktop) */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* Navbar */
  .navbar .container {
    flex-wrap: wrap;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .nav-brand {
    font-size: 1.2rem;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    gap: 1rem;
    border-top: 1px solid var(--border);
  }
  .nav-links.active {
    display: flex;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  /* Wizard Layout */
  .wizard-layout {
    flex-direction: column;
    gap: 2rem;
  }
  .wizard-sidebar {
    flex: none;
    width: 100%;
    position: static;
  }
  .wizard-sidebar-image {
    height: 200px;
  }
}

