/* Minimalist modern CSS styles */
:root {
  --primary-color: #121212;
  --accent-color: #6d6d6d;
  --background-color: #f7f7f7;
  --white: #ffffff;
  --error-color: #bf4343;
  --success-color: #388e3c;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--primary-color);
  line-height: 1.6;
}

header {
  background: var(--white);
  border-bottom: 1px solid #eaeaea;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

nav a {
  text-decoration: none;
  color: var(--primary-color);
  margin-left: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

main {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  min-height: calc(100vh - 200px);
}

footer {
  text-align: center;
  padding: 2.5rem;
  background-color: var(--white);
  border-top: 1px solid #eaeaea;
  font-size: 0.85rem;
  color: var(--accent-color);
}

/* Form Styles */
input, textarea, select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.85rem 1.8rem;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn:disabled {
  background-color: #cccccc;
  color: #777777;
  cursor: not-allowed;
}

/* Cookie Consent Bar */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2000;
}

#cookie-banner button {
  background-color: var(--white);
  color: var(--primary-color);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Modal overlays */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--white);
  padding: 2.2rem;
  max-width: 500px;
  width: 90%;
  border-radius: 6px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin-bottom: 1rem;
}

/* Interactive Wiring feedback notices */
.feedback-box {
  padding: 1.2rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: none;
}

.feedback-box.error {
  background-color: #fbebeb;
  color: var(--error-color);
  border: 1px solid #f3c1c1;
  display: block;
}

.feedback-box.success {
  background-color: #ebf7ec;
  color: var(--success-color);
  border: 1px solid #c7ebc9;
  display: block;
}

/* Sticky Action bar (Bottom locks on scroll) */
.product-actions-bar {
  display: flex;
  gap: 1rem;
}

@media(max-width: 768px) {
  .product-actions-bar.sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 1.5rem;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.1);
    z-index: 900;
    display: flex;
  }
}