/* 최적화된 templatestyle1.css */
/* 기본 설정 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  padding: 20px;
  width: 100%;
  margin: 0 auto;
}

/* 컨테이너 */
.container {
  width: 100%;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-top: 20px;
}

/* 제품 섹션 */
.product-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px;
}

.product-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-description {
  flex: 1;
  min-width: 300px;
}

.product-description p {
  margin-bottom: 15px;
  font-size: 16px;
}

/* 테이블 컨테이너 */
.product-table-container {
  padding: 0 20px 20px 20px;
  overflow-x: auto;
}

/* 테이블 제목 (보라색 배너) */
.table-title {
  font-size: 18px;
  padding: 10px;
  background-color: #6a4c93;
  color: white;
  border-radius: 4px 4px 0 0;
  text-align: center;
  font-weight: bold;
  margin-bottom: 0;
}

/* 테이블 기본 스타일 */
.product-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 테이블 헤더 */
.product-table th {
  background-color: #ffffff;
  color: rgb(60, 68, 71);
  font-weight: 600;
  text-align: center;
  padding: 12px 8px;
  font-size: 14px;
  border: 1px solid #d4d4d4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 테이블 행 */
.product-table tr:not(:first-child) {
  height: 40px;
  transition: background-color 0.2s;
}

.product-table tr:hover {
  background-color: #f5f5f5;
}

.product-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* 테이블 셀 */
.product-table td {
  padding: 8px;
  border: 1px solid #ddd;
  vertical-align: middle;
  text-align: center;
}

/* SKU 셀 */
.product-table td:first-child {
  text-align: left;
  width: 120px;
}

/* 설명 셀 */
.product-table td:nth-child(2) {
  text-align: left;
}

/* 가격 셀 - 250 */
.product-table td:nth-child(5) {
  font-weight: bold;
  background-color: #f0f8ff;
}

/* 가격 셀 - 500 */
.product-table td:nth-child(6) {
  font-weight: bold;
  background-color: #f0fff0;
}

/* 가격 셀 - 1000 */
.product-table td:nth-child(7) {
  font-weight: bold;
  background-color: #fff0f0;
}

/* 수량 입력 */
input[type="text"][size="3"] {
  width: 40px;
  padding: 3px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 3px;
}

/* ADD 버튼 */
input[type="submit"][value="ADD"] {
  background: linear-gradient(to bottom, #71CD85, #04863F);
  color: white;
  border: none;
  padding: 4px 10px;
  margin-left: 5px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
  transition: background 0.2s;
}

input[type="submit"][value="ADD"]:hover {
  background: linear-gradient(to bottom, #82DE96, #05974F);
}

/* 푸터 */
.footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
  .product-section {
    flex-direction: column;
  }
  
  .product-table th, 
  .product-table td {
    padding: 6px 4px;
    font-size: 13px;
  }
}