:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #0ea5e9;
  --primary-600: #0284c7;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 8px;
  width: auto;
  height: auto;
  background: #111827;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 50;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.site-header { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; height: 100%; gap: 10px; }
.brand-logo { display: block; height: 60px; width: auto; }
.menu-toggle { display: none; border: 1px solid var(--border); background: #fff; padding: 8px 10px; border-radius: 8px; }
.nav a { margin: 0 8px; text-decoration: none; color: var(--text); padding: 8px 10px; border-radius: 6px; }
.nav a.active, .nav a:hover { background: #f3f4f6; }
.cart-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--border); background: #fff; border-radius: 8px; cursor: pointer; }
.cart-count { background: var(--primary); color: white; padding: 0 6px; border-radius: 999px; font-size: 12px; }

.hero { background:  #b4e1ff; border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 40px 0; align-items: center; }
.hero-art {
  background: url('../images/logo.png') no-repeat center / contain;
  width: 100%;
  max-width: 420px;
  min-height: 280px;
  justify-self: end;
  opacity: 0.95;
}

@media (max-width: 960px) {
  .hero-art { max-width: 300px; min-height: 220px; margin: 0 auto; justify-self: center; }
}
.hero-cta { display: flex; gap: 12px; margin-top: 12px; }
.button { display: inline-block; border: 1px solid var(--border); padding: 10px 14px; border-radius: 8px; background: #fff; cursor: pointer; }
.button.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.button.primary:hover { background: var(--primary-600); border-color: var(--primary-600); }

/* Remove button styling */
.button[data-remove] {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.button[data-remove]:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

/* Busy/disabled state */
.button[aria-busy="true"], .button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

.button[aria-busy="true"]::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255,255,255,0.6);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 32px 0; }
.feature { border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: #fff; }

.site-footer { border-top: 1px solid var(--border); padding: 20px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px 0; }
.product-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.product-media { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #f3f4f6; }
.product-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.product-title { font-weight: 600; margin: 0; font-size: 16px; }
.product-meta { color: var(--muted); font-size: 13px; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty input { width: 64px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; }
.card-actions { display: flex; gap: 8px; }

.cart-drawer { position: fixed; inset: 0; display: none; }
.cart-drawer[aria-hidden="false"] { display: block; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.cart-panel { position: absolute; right: 0; top: 0; height: 100%; width: min(420px, 100%); background: #fff; border-left: 1px solid var(--border); display: flex; flex-direction: column; }
.cart-header { padding: 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-items { padding: 12px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; }
.cart-footer { border-top: 1px solid var(--border); padding: 12px; display: flex; align-items: center; justify-content: space-between; }
.cart-close { border: none; background: transparent; font-size: 24px; cursor: pointer; }

.cart-table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; margin: 16px 0; }
.cart-row { display: grid; grid-template-columns: 80px 2fr 1fr auto; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--border); }
.cart-row:last-child { border-bottom: none; }
.cart-row img { width: 80px; height: 80px; object-fit: cover; background: #f3f4f6; }
.cart-row .name { font-weight: 600; }
.cart-row .sku { color: var(--muted); font-size: 13px; }
.cart-row .qty { justify-content: flex-start; }
.cart-summary { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 12px; }
.cart-actions-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; }

/* Size options styling */
.size-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.size-option {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  background: #fff;
  cursor: pointer;
  user-select: none;
}
.size-option:hover { border-color: var(--primary); }
.size-option[data-selected="true"] {
  border-color: var(--primary);
  background: #e0f2fe;
  color: #0c4a6e;
  font-weight: 600;
}

@media (max-width: 720px) {
  .cart-row { grid-template-columns: 64px 1fr; grid-template-areas: 'img name' 'img meta' 'qty qty' 'actions actions'; }
}

.modal { position: fixed; inset: 0; display: none; }
.modal[aria-hidden="false"] { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.modal-dialog { position: relative; z-index: 10; width: min(560px, 92%); margin: 8vh auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; max-height: 84vh; overflow: auto; }
.modal-close { position: absolute; top: 8px; right: 8px; border: none; background: transparent; font-size: 24px; cursor: pointer; }

.quote-form { display: grid; gap: 10px; }
.form-row { display: grid; gap: 6px; }
.form-row input, .form-row textarea { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.fine-print { color: var(--muted); font-size: 12px; }

.prose { max-width: 72ch; padding: 24px 0; }

/* About page specific styles */
.about-hero {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 24px 0;
    align-items: stretch;
}
.about-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-logo-img {
  width: 120%;

  height: auto;
}

.about-content {
  max-width: 72ch;
}

@media (max-width: 768px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .about-logo {
    justify-self: center;
  }
  
  .about-logo-img {
    max-width: 150px;
  }
}

/* Amazon-style Product View */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 32px 0;
  align-items: start;
}

.product-image-section {
  position: sticky;
  top: 100px;
}

.product-main-image {
  width: 100%;
  max-width: 500px;
  height: 400px;
  object-fit: contain;
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image-thumbnails {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f8f9fa;
  padding: 8px;
}

.product-thumbnail:hover,
.product-thumbnail.active {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.product-info-section {
  padding: 0 16px;
}

.product-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.product-description {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.product-specs {
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.product-specs h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.product-specs ul {
  margin: 0;
  padding-left: 20px;
}

.product-specs li {
  margin-bottom: 8px;
  color: var(--muted);
}

.product-purchase-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.product-availability {
  color: #059669;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-availability::before {
  content: "✓";
  background: #059669;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.size-selection {
  margin-bottom: 20px;
}

.size-selection h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.quantity-selection {
  margin-bottom: 24px;
}

.quantity-selection h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.quantity-input {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-input input {
  width: 80px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  font-size: 16px;
}

.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-actions .button {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
}

.product-actions .button.primary {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: white;
}

.product-actions .button.primary:hover {
  background: #0175aa;
  border-color: #0175aa;
}

.product-features {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.product-features h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.feature-item::before {
  content: "✓";
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .product-image-section {
    position: static;
  }
  
  .product-main-image {
    max-width: 100%;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .product-detail {
    gap: 24px;
    padding: 16px 0;
  }
  
  .product-title {
    font-size: 24px;
  }
  
  .product-main-image {
    height: 250px;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .product-actions .button {
    flex: none;
  }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--border); display: none; padding: 8px 16px; }
  .nav[data-open="true"] { display: block; }
  .nav a { display: block; margin: 6px 0; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .modal-dialog { width: 100%; height: 100dvh; margin: 0; border-radius: 0; max-height: none; }
  .quote-form { overflow: auto; }
}

/* Enhanced Products Page Styles - Clean and Subtle */
.cart-table {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.cart-row {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s ease;
}

.cart-row:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cart-row:last-child {
  border-bottom: none;
}

.cart-row img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease;
}

.cart-row:hover img {
  transform: scale(1.02);
}

.cart-row .name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.cart-row .name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cart-row .name a:hover {
  color: var(--primary);
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.size-option {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  font-size: 12px;
  background: #f9fafb;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.size-option:hover {
  border-color: var(--primary);
  background: #e0f2fe;
  color: var(--primary);
}

.size-option[data-selected="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.qty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qty label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qty input {
  width: 60px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  transition: border-color 0.2s ease;
}

.qty input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.button.primary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(14, 165, 233, 0.2);
}

.button.primary:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cart-row {
    grid-template-columns: 80px 1fr;
    gap: 16px;
    padding: 16px;
  }
  
  .cart-row img {
    width: 80px;
    height: 80px;
  }
  
  .qty {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    margin-top: 12px;
  }
  
  .button.primary {
    grid-column: 1 / -1;
    margin-top: 12px;
  }
}

@media (max-width: 480px) {
  .cart-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }
  
  .cart-row img {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }
  
  .size-options {
    justify-content: center;
  }
}


/* Toasts */
.toast-container {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #111827;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-size: 14px;
}
