:root {
  --primary: #E91E8C;
  --primary-dark: #C2166F;
  --secondary: #1A1A2E;
  --accent: #FFD700;
  --bg: #F8F8F8;
  --white: #FFFFFF;
  --text: #222222;
  --text-light: #666666;
  --border: #EEEEEE;
  --success: #27AE60;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans KR', 'Noto Sans JP', 'Apple SD Gothic Neo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* LANGUAGE TOGGLE */
.lang-toggle {
  display: flex;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-btn {
  padding: 5px 11px;
  border: none;
  background: white;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.lang-btn.active {
  background: var(--primary);
  color: white;
}

/* HEADER */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span { color: var(--secondary); }

nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--primary); }

.cart-btn {
  background: var(--primary);
  color: white !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-count {
  background: var(--accent);
  color: var(--secondary);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #16213E 50%, #0F3460 100%);
  color: white;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(233,30,140,0.15) 0%, transparent 60%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.hero-tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 36px;
  position: relative;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px rgba(233,30,140,0.4);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(233,30,140,0.5);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

/* SECTION */
.section { padding: 60px 20px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--secondary);
}

.section-sub {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 36px;
}

/* FILTER TABS */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: white;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab.active, .filter-tab:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

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

.product-info { padding: 16px; }

.product-group {
  display: inline-block;
  background: rgba(233,30,140,0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.product-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
}

.product-celebrity {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.product-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
}

.product-price small {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
  margin-left: 4px;
}

.product-card .add-btn {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.product-card .add-btn:hover { background: var(--primary-dark); }

/* CART SIDEBAR */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
}

.cart-overlay.open { display: block; }

.cart-sidebar {
  position: fixed;
  right: -400px;
  top: 0;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: white;
  z-index: 201;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open { right: 0; }

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 { font-size: 18px; font-weight: 800; }

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
}

.cart-items { flex: 1; overflow-y: auto; padding: 16px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--primary); }

.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.qty-num { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }

.remove-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-total-label { font-size: 14px; color: var(--text-light); }
.cart-total-price { font-size: 22px; font-weight: 900; color: var(--primary); }

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.cart-empty .icon { font-size: 60px; margin-bottom: 16px; }

/* CHECKOUT FORM */
.checkout-wrap {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
}

.checkout-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.checkout-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.delivery-option {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.delivery-option.selected {
  border-color: var(--primary);
  background: rgba(233,30,140,0.05);
}

.delivery-option .icon { font-size: 28px; margin-bottom: 8px; }
.delivery-option .title { font-size: 13px; font-weight: 700; }
.delivery-option .desc { font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* ORDER SUMMARY */
.order-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
  font-weight: 800;
  font-size: 18px;
}

.order-total-row span:last-child { color: var(--primary); }

/* CONFIRM PAGE */
.confirm-wrap {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.confirm-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 24px;
  color: white;
}

.confirm-wrap h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 12px;
}

.order-no-badge {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 700;
  margin: 16px 0;
  letter-spacing: 1px;
}

.confirm-details {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin: 24px 0;
  text-align: left;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.confirm-row:last-child { border-bottom: none; }
.confirm-row label { color: var(--text-light); font-weight: 600; }
.confirm-row span { font-weight: 700; }

/* FEATURES */
.features {
  background: var(--secondary);
  color: white;
  padding: 60px 20px;
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.feature-item .icon { font-size: 40px; margin-bottom: 12px; }
.feature-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-item p { font-size: 13px; opacity: 0.7; line-height: 1.6; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--secondary);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  z-index: 999;
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ADMIN */
.admin-wrap {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table th {
  background: var(--secondary);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.status-paid { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-preparing { background: #cce5ff; color: #004085; }
.status-ready { background: #d1ecf1; color: #0c5460; }
.status-shipped { background: #e2e3e5; color: #383d41; }
.status-done { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* FOOTER */
footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.6);
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
}

footer a { color: rgba(255,255,255,0.8); text-decoration: none; }

/* LOADING */
.loading {
  text-align: center;
  padding: 60px;
  color: var(--text-light);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero { padding: 60px 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .delivery-options { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100%; }
  nav { display: none; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 16px; }
  .trust-bar-inner { gap: 12px; }
  .trust-item { font-size: 11px; }
  .checkout-card { padding: 20px; }
  .section { padding: 40px 16px; }
}

/* 상품 카드 커서 */
.product-card { cursor: pointer; }

/* 공지 바 */
.notice-bar a { color: white; text-decoration: underline; }

/* 배지 */
.badge-new {
  display: inline-block;
  background: #ff4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* 재고 소진 */
.product-card.out-of-stock .add-btn {
  background: #ccc;
  cursor: not-allowed;
}

/* LINE 공유 버튼 hover */
.line-share-btn:hover {
  background: #05b24d;
  transform: translateY(-1px);
}
.line-share-btn { transition: all 0.2s; }
