/* === 기본 초기화 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #e8622a;
  --primary-dark: #c94f1e;
  --primary-light: #fff4ef;
  --secondary: #f7a948;
  --text: #1a1a1a;
  --text-sub: #666;
  --bg: #fdfaf7;
  --white: #fff;
  --border: #ece8e2;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 16px;
}

html { scroll-behavior: smooth; }

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

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

/* === 헤더 === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.logo-sub {
  font-size: 11px;
  color: var(--text-sub);
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover { color: var(--primary); }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  position: relative;
  white-space: nowrap;
}

.cart-btn:hover { background: var(--primary-dark); }
.cart-btn:active { transform: scale(0.97); }

.cart-icon { font-size: 16px; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff3b30;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  transition: transform 0.2s;
}

.cart-badge.pop { transform: scale(1.4); }

/* === 히어로 === */
.hero {
  background: linear-gradient(135deg, #fff4ef 0%, #fde8d8 50%, #fdf3e3 100%);
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  overflow: hidden;
  position: relative;
}

.hero-content {
  max-width: 540px;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--text);
}

.hero-content h1 strong {
  color: var(--primary);
}

.hero-content p {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(232, 98, 42, 0.4);
}

.hero-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 98, 42, 0.5);
}

.hero-deco {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
}

.bread-float {
  position: absolute;
  font-size: 60px;
  animation: float 3s ease-in-out infinite;
}

.b1 { top: 0; left: 30px; animation-delay: 0s; }
.b2 { top: 40px; right: 0; font-size: 48px; animation-delay: 0.8s; }
.b3 { bottom: 40px; left: 0; font-size: 52px; animation-delay: 1.4s; }
.b4 { bottom: 0; right: 30px; font-size: 44px; animation-delay: 0.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* === 정보 바 === */
.info-bar {
  background: var(--primary);
  color: white;
  padding: 14px 20px;
}

.info-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.info-icon { font-size: 16px; }

/* === 섹션 공통 === */
.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-badge {
  background: #ff3b30;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* === 필터 탭 === */
.filter-section {
  padding: 40px 0 0;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.tab:hover { border-color: var(--primary); color: var(--primary); }

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

/* === 상품 그리드 === */
.products-section {
  padding: 24px 0 60px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.13);
}

.product-card.sold-out { opacity: 0.65; pointer-events: none; }

.product-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #fde8d8, #fdf3e3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
}

.soldout-badge {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.urgent-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff3b30;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  animation: pulse 1.5s infinite;
}

.product-info {
  padding: 16px;
}

.product-category {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.product-desc {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 12px;
  line-height: 1.5;
}

.product-stock {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stock-bar {
  flex: 1;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
}

.stock-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s;
}

.stock-fill.low { background: #ff3b30; }

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.original-price {
  font-size: 13px;
  color: #aaa;
  text-decoration: line-through;
}

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

.add-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.add-btn:hover { background: var(--primary-dark); }
.add-btn:active { transform: scale(0.98); }

/* === 이용방법 === */
.how-section {
  background: var(--white);
  padding: 60px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  padding: 24px 20px;
  background: var(--bg);
  border-radius: var(--radius);
  width: 160px;
  position: relative;
}

.step-num {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}

.step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

.step-arrow {
  font-size: 24px;
  color: var(--primary);
  font-weight: 300;
}

/* === FAQ === */
.faq-section {
  padding: 60px 20px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  gap: 12px;
}

.faq-arrow {
  font-size: 18px;
  transition: transform 0.3s;
  flex-shrink: 0;
  color: var(--primary);
}

.faq-q.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-a.open {
  max-height: 200px;
  padding: 0 20px 18px;
}

/* === 푸터 === */
.footer {
  background: #1a1a1a;
  color: #888;
  padding: 40px 20px;
}

.footer-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.footer-info p {
  font-size: 13px;
  line-height: 1.8;
}

.footer-copy {
  font-size: 12px;
  border-top: 1px solid #333;
  padding-top: 20px;
}

/* === 장바구니 사이드바 === */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

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

.cart-sidebar.open { transform: translateX(0); }

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

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

.cart-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-sub);
  padding: 4px 8px;
}

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

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

.cart-empty-icon { font-size: 48px; margin-bottom: 12px; }

.cart-empty p { font-size: 15px; margin-bottom: 4px; }
.cart-empty-sub { font-size: 13px; color: #aaa; }

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

.cart-item-emoji { font-size: 36px; flex-shrink: 0; }

.cart-item-info { flex: 1; }

.cart-item-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }

.cart-item-price { font-size: 14px; color: var(--primary); font-weight: 700; }

.cart-item-orig { font-size: 12px; color: #aaa; text-decoration: line-through; }

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

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

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

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

.cart-item-del {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: color 0.2s;
}

.cart-item-del:hover { color: #ff3b30; }

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

.cart-summary { margin-bottom: 16px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
  color: var(--text-sub);
}

.summary-row.discount { color: #ff3b30; }

.summary-row.total {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.order-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.order-btn:hover { background: var(--primary-dark); }

/* === 모달 === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: 460px;
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 20px;
  z-index: 301;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

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

.modal-header h3 { font-size: 18px; font-weight: 800; }
.modal-header button { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-sub); }

.modal-body { padding: 20px 24px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--text-sub); margin-bottom: 8px; }
.form-group input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus { border-color: var(--primary); }

.pay-options { display: flex; gap: 12px; flex-wrap: wrap; }

.pay-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
}

.pay-opt:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.order-summary-box {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
}

.order-summary-box h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--text-sub); }

.order-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.order-final-price { color: var(--primary); }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
}

.cancel-btn {
  flex: 1;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-sub);
}

.cancel-btn:hover { border-color: var(--primary); color: var(--primary); }

.confirm-btn {
  flex: 2;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.confirm-btn:hover { background: var(--primary-dark); }

/* === 주문 완료 === */
.success-modal {
  text-align: center;
  padding: 40px 32px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #34c759;
  color: white;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-modal h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.success-modal > p { color: var(--text-sub); margin-bottom: 24px; }

.pickup-info {
  background: var(--primary-light);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.pickup-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 2px;
}

.pickup-label { font-size: 13px; color: var(--text-sub); margin: 4px 0 12px; }
.pickup-time { font-size: 14px; color: var(--text); }

.success-modal .confirm-btn { width: 100%; flex: none; }

/* === 빵집 찾기 === */
.bakeries-section {
  padding: 60px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-desc {
  color: var(--text-sub);
  font-size: 15px;
  margin-top: -16px;
  margin-bottom: 28px;
}

.region-selector {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.region-step { }

.region-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.region-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.region-btn {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-sub);
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.region-btn:hover { border-color: var(--primary); color: var(--primary); }

.region-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.bakery-search-bar {
  position: relative;
  margin-bottom: 20px;
}

.bakery-search-bar input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 44px 12px 16px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  background: var(--bg);
}

.bakery-search-bar input:focus { border-color: var(--primary); background: white; }

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-sub);
  pointer-events: none;
}

.bakery-result-info {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 16px;
  min-height: 20px;
}

.bakery-result-info strong { color: var(--primary); }

.bakery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.bakery-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: default;
}

.bakery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.bakery-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.bakery-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.bakery-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
  background: #fff8ee;
  padding: 3px 8px;
  border-radius: 8px;
}

.bakery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.bakery-tag {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.bakery-tag.discount {
  background: #fff0f0;
  color: #ff3b30;
}

.bakery-info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 6px;
  line-height: 1.5;
}

.bakery-info-icon { flex-shrink: 0; font-size: 14px; }

.bakery-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.bakery-open {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}

.bakery-open.open { background: #e8f8ee; color: #34c759; }
.bakery-open.closed { background: #f0f0f0; color: #999; }

.bakery-call-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.bakery-call-btn:hover { background: var(--primary-dark); }

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

.bakery-empty-sub { font-size: 13px; color: #aaa; margin-top: 4px; }

/* === 인증 버튼 (헤더) === */
.auth-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

.login-btn {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.login-btn:hover { border-color: var(--primary); color: var(--primary); }

.signup-btn {
  background: var(--primary-light);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

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

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-greeting {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.logout-btn {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-sub);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.logout-btn:hover { border-color: #ff3b30; color: #ff3b30; }

/* === 인증 모달 === */
.auth-modal { width: 440px; }

.auth-tabs {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--primary);
  color: white;
}

.required { color: #ff3b30; }

.pw-wrap {
  position: relative;
}

.pw-wrap input { padding-right: 44px; }

.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-sub);
  padding: 4px;
}

.pw-strength {
  height: 4px;
  background: #eee;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.pw-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}

.pw-hint {
  font-size: 12px;
  margin-top: 4px;
  color: var(--text-sub);
  min-height: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 8px;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-label.small { font-size: 13px; }

.all-agree { font-weight: 700; }

.agree-sub {
  padding-left: 8px;
  border-left: 2px solid var(--border);
  margin-left: 4px;
}

.agree-sub .checkbox-label { font-size: 13px; color: var(--text-sub); }

.auth-error {
  background: #fff0f0;
  color: #ff3b30;
  font-size: 13px;
  padding: 0;
  border-radius: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
}

.auth-error.show {
  padding: 10px 14px;
  max-height: 80px;
}

.full-btn { width: 100%; flex: none; }

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.find-pw {
  font-size: 13px;
  color: var(--text-sub);
  text-decoration: none;
}

.find-pw:hover { color: var(--primary); text-decoration: underline; }

.social-login { margin-top: 20px; }

.social-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 12px;
  position: relative;
}

.social-label::before,
.social-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 36%;
  height: 1px;
  background: var(--border);
}

.social-label::before { left: 0; }
.social-label::after { right: 0; }

.social-btns {
  display: flex;
  gap: 10px;
}

.social-btn {
  flex: 1;
  padding: 10px 4px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.social-btn.kakao { background: #fee500; border-color: #fee500; color: #3c1e1e; }
.social-btn.kakao:hover { filter: brightness(0.95); }
.social-btn.naver { background: #03c75a; border-color: #03c75a; color: white; }
.social-btn.naver:hover { filter: brightness(0.92); }
.social-btn.google:hover { border-color: var(--primary); color: var(--primary); }

.signup-success-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 4px;
}

/* === 반응형 === */
@media (max-width: 768px) {
  .hero { flex-direction: column; padding: 48px 20px; text-align: center; }
  .hero-content h1 { font-size: 26px; }
  .hero-deco { width: 180px; height: 160px; }
  .bread-float { font-size: 44px; }
  .b2 { font-size: 36px; }
  .b3 { font-size: 38px; }
  .b4 { font-size: 32px; }
  .nav { display: none; }
  .auth-btns { gap: 6px; }
  .login-btn, .signup-btn { padding: 6px 10px; font-size: 12px; }
  .info-bar-inner { gap: 16px; }
  .steps { gap: 8px; }
  .step { width: 130px; padding: 20px 12px; }
  .step-arrow { font-size: 18px; }
  .cart-sidebar { width: 100vw; }
  .section-title { font-size: 22px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}
