/* ===== Global Styles ===== */
:root {
  --primary: #2563eb;
  --secondary: #64748b;
  --bg: #f9fafb;
  --text: #111827;
  --radius: 8px;
  --container: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ===== Header & Navigation ===== */
.site-header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
}

.logo a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-left: 2rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.main-nav a:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Hero / Home ===== */
.hero {
  background: linear-gradient(145deg, var(--primary), #60a5fa);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  background-size: cover;
  background-position: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #1e40af;
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background: #475569;
}

/* ===== Product / Cart / Forms ===== */
.product-detail,
.cart-page,
.checkout-page,
.contact-page,
.thank-you-page {
  padding: 2rem 0;
}

.product-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.product-image {
  width: 300px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-info {
  flex: 1;
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-weight: 700;
  margin: 1rem 0;
}

/* Cart Table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-table th,
.cart-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.cart-table th {
  background: #f3f4f6;
}

.qty-input {
  width: 60px;
}

/* Forms */
form {
  margin-top: 1.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-size: 1rem;
}

/* ===== Thank You Page ===== */
.thank-you-page {
  text-align: center;
}

.thankyou-image {
  max-width: 400px;
  margin: 1rem auto;
  display: block;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: auto;
  background: white;
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-nav a {
  color: var(--text);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--primary);
}

/* ===== Utilities ===== */
.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .product-hero {
    flex-direction: column;
    text-align: center;
  }

  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  .logo-img {
    height: 32px;
  }

  .hero h2 {
    font-size: 1.5rem;
  }
}
