:root {
  --primary: #222;
  --secondary: #555;
  --accent: #e63946;
  --bg: #f9f9f9;
  --card-bg: #fff;
  --border: #eee;
  --font-main: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--primary);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: var(--card-bg);
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

/* Grid System */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

/* Product Card */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-image {
  height: 250px;
  background: #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-image {
  color: #999;
  font-size: 14px;
}

.product-info {
  padding: 15px;
}

.product-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.product-price {
  margin: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 15px;
}

/* Pagination */
.pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
}

.pagination a {
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
}

.pagination a:hover {
  background: var(--primary);
  color: #fff;
}

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-gallery img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 10px;
}

.product-title-large {
  margin-top: 0;
  font-size: 32px;
}

.product-price-large {
  font-size: 24px;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 20px;
}

.payment-info {
  margin-top: 40px;
  padding: 20px;
  background: #fdfdfd;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.payment-info h3 {
  margin-top: 0;
  font-size: 18px;
}

footer {
  margin-top: 80px;
  padding: 40px 0;
  text-align: center;
  color: var(--secondary);
  border-top: 1px solid var(--border);
}
