/* Big Packaging Centre — custom styles on top of Tailwind CDN */

:root {
  --brand-red: #C8102E;
  --brand-red-dark: #9E0C24;
  --brand-dark: #1A1A1A;
  --brand-navy: #0F172A;
  --brand-bg: #FAFAF7;
  --brand-muted: #F3F4F6;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--brand-bg);
  color: var(--brand-dark);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand-red);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--brand-red-dark); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--brand-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1.5px solid var(--brand-dark);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-outline:hover { background: var(--brand-dark); color: #fff; }

/* Product card hover */
.product-card { transition: transform 0.2s, box-shadow 0.2s; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); }

/* Hero pattern */
.hero-bg {
  background:
    linear-gradient(135deg, rgba(200,16,46,0.92) 0%, rgba(158,12,36,0.95) 100%),
    repeating-linear-gradient(45deg, transparent 0 20px, rgba(255,255,255,0.03) 20px 21px);
}

/* Placeholder product image */
.product-placeholder {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-weight: 600;
  aspect-ratio: 1;
}

/* Category icon tile */
.category-tile {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.category-tile:hover {
  border-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.category-tile svg { color: var(--brand-red); }

/* Form controls */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.25rem;
}
.badge-red { background: var(--brand-red); color: #fff; }
.badge-outline { border: 1px solid #d1d5db; color: #4b5563; }
.badge-green { background: #dcfce7; color: #166534; }

/* Utility */
.divide-line { border-top: 1px solid #e5e7eb; }

/* Sticky checkout sidebar */
@media (min-width: 1024px) {
  .checkout-sticky { position: sticky; top: 100px; }
}
