* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #333; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky; top: 0; z-index: 100;
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo { font-size: 24px; font-weight: 700; color: #ff6b9d; }
.nav a { margin: 0 15px; color: #555; font-size: 15px; }
.nav a:hover { color: #ff6b9d; }
.cart-btn { background: #ff6b9d; color: #fff; padding: 8px 16px; border-radius: 20px; font-size: 14px; }

.hero {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  padding: 80px 0; text-align: center;
}
.hero h1 { font-size: 42px; margin-bottom: 10px; color: #333; }
.hero p { font-size: 18px; color: #666; margin-bottom: 30px; }
.btn {
  display: inline-block; background: #ff6b9d; color: #fff;
  padding: 12px 36px; border-radius: 25px; font-size: 16px;
}

section { padding: 60px 0; }
section h2 { font-size: 28px; text-align: center; margin-bottom: 40px; }

.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.category-card {
  background: #fff5f7; border-radius: 12px; padding: 40px 20px;
  text-align: center; border: 1px solid #ffe0e6;
  transition: transform 0.2s;
}
.category-card:hover { transform: translateY(-3px); }
.category-card h3 { font-size: 18px; color: #ff6b9d; }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.product-card {
  border: 1px solid #eee; border-radius: 12px; overflow: hidden;
  transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.product-card h3 { padding: 12px 16px 4px; font-size: 16px; }
.product-price { padding: 0 16px 16px; }
.sale-price { color: #ff4444; font-size: 18px; font-weight: 600; }
.original-price { text-decoration: line-through; color: #999; margin-left: 8px; font-size: 14px; }

.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-main-img { background: #f5f5f5; height: 400px; border-radius: 12px; }
.product-info h1 { font-size: 24px; margin-bottom: 12px; }
.product-desc { color: #666; margin-bottom: 20px; }
.option-group { margin-bottom: 16px; }
.option-group label { display: block; font-size: 14px; color: #666; margin-bottom: 8px; }
.option-btns { display: flex; gap: 8px; }
.opt-btn { padding: 8px 20px; border: 1px solid #ddd; border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; }
.opt-btn.active { border-color: #ff6b9d; background: #fff5f7; color: #ff6b9d; }
.qty-selector { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.qty-selector button { width: 32px; height: 32px; border: 1px solid #ddd; border-radius: 4px; background: #fff; cursor: pointer; font-size: 16px; }
.qty-selector span { font-size: 16px; min-width: 24px; text-align: center; }
.add-cart-btn { width: 100%; text-align: center; }

.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cart-table th { background: #fafafa; padding: 12px; text-align: left; font-size: 14px; color: #666; border-bottom: 1px solid #eee; }
.cart-table td { padding: 16px 12px; border-bottom: 1px solid #f0f0f0; }
.del-btn { background: none; border: none; color: #ff4444; cursor: pointer; font-size: 14px; }
.cart-total { text-align: right; padding: 20px 0; font-size: 18px; }
.cart-total strong { color: #ff4444; font-size: 24px; }
.cart-total .btn { margin-left: 20px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; color: #666; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 15px; outline: none; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-color: #ff6b9d; }

.footer {
  background: #333; color: #fff; text-align: center; padding: 30px 0;
}
.footer p { font-size: 14px; color: #999; }
