/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8fafc; /* 밝은 은회색/화이트 배경 */
  color: #1e293b;            /* 진한 텍스트 컬러 */
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }

/* Header & Nav */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
}
.logo { font-size: 1.5rem; font-weight: 800; color: #ea580c; letter-spacing: -0.5px; }
nav a { margin-left: 1.5rem; font-weight: 600; font-size: 0.95rem; color: #64748b; transition: color 0.2s; }
nav a:hover, nav a.active { color: #ea580c; }

/* Layout & Typography */
.container { 
  max-width: 1000px; 
  margin: 0 auto; 
  padding: 3rem 2rem; 
  width: 100%; 
  flex: 1;
}
.page-title {
  font-size: 2rem; font-weight: 800; margin-bottom: 2rem;
  border-left: 5px solid #ea580c; padding-left: 1rem; color: #0f172a;
}
.btn-primary {
  background-color: #ea580c; color: #ffffff; padding: 0.8rem 1.8rem;
  border-radius: 6px; font-weight: 600; border: none; cursor: pointer;
  display: inline-block; transition: background 0.2s; text-align: center;
}
.btn-primary:hover { background-color: #c2410c; }

/* Cards & Forms */
.card-box {
  background: #ffffff; padding: 2rem; border-radius: 8px; border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; color: #334155; }
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea {
  width: 100%; padding: 0.75rem; background: #ffffff; border: 1px solid #cbd5e1;
  border-radius: 6px; color: #0f172a; font-size: 0.95rem;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #ea580c; box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1); }
.form-group textarea { height: 140px; resize: vertical; }

/* Product Grid (products.html 용) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.product-card {
  background: #ffffff; border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.product-card img { width: 100%; height: 200px; object-fit: cover; background: #f1f5f9; }
.product-card .info { padding: 1.25rem; }
.product-card h3 { font-size: 1.1rem; color: #0f172a; margin-bottom: 0.25rem; }
.product-card p { color: #64748b; font-size: 0.875rem; }

/* Admin Table (admin.html 용) */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { padding: 0.75rem 1rem; border: 1px solid #e2e8f0; text-align: left; font-size: 0.9rem; }
th { background: #f8fafc; color: #0f172a; font-weight: 700; }

/* Footer */
footer {
  text-align: center; 
  padding: 2rem; 
  background: #ffffff;
  border-top: 1px solid #e2e8f0; 
  color: #94a3b8; 
  font-size: 0.875rem; 
  margin-top: auto;
}