/* ============================================================
   Daeyo Shop UI (Medical/Professional)
   - 목표: 전문기업(의료기기 제조사) 신뢰 + SaaS(구독) 느낌 일부 혼합
   - 주석: 이미지/PDF는 /static/img, /static/docs 에 박사님이 직접 추가
   ============================================================ */

* {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --primary: #0f172a;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --radius2: 14px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ============================================================
   v10 Design Upgrade Pack (2026 Pro Medical Brand)
   - 주석: 박사님 요청사항 반영 (화이트 베이스, 히어로 풀배너, 관리자 폼 고급화)
   ============================================================ */

/* -------------------- Layout helpers -------------------- */
.page {
  background: var(--bg);
}

.section {
  padding: 26px 0;
}

.section--tight {
  padding: 14px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card--flat {
  box-shadow: none;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* -------------------- Inputs -------------------- */
.input,
select.input,
textarea.input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  outline: none;
  font-size: 14px;
  color: var(--text);
}

textarea.input {
  min-height: 110px;
  resize: vertical;
}

.input:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.label {
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 6px;
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.col-3 {
  grid-column: span 3;
}

.col-4 {
  grid-column: span 4;
}

.col-6 {
  grid-column: span 6;
}

.col-12 {
  grid-column: span 12;
}

@media (max-width: 980px) {

  .col-3,
  .col-4,
  .col-6 {
    grid-column: span 12;
  }
}

/* 체크박스/스위치 */
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.check input {
  width: 18px;
  height: 18px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
  font-size: 12px;
  color: var(--text);
}


/* -------------------- 상품 활성화 표시 -------------------- */
.status-active {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fdba74;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.status-off {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}


/* -------------------- Hero Full Banner -------------------- */
.hero-full {
  position: relative;
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 430px;
  background: transparent;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}

.hero-slide.active {
  opacity: 1;
  position: absolute;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.02) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, .82) 0%, rgba(15, 23, 42, .55) 42%, rgba(15, 23, 42, .15) 72%, rgba(15, 23, 42, 0) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 44px 44px;
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .2px;
}

.hero-title {
  color: #fff;
  font-size: 44px;
  line-height: 1.15;
  margin: 16px 0 12px 0;
  font-weight: 900;
}

.hero-desc {
  color: rgba(255, 255, 255, .86);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 18px 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-meta .badge-pill {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  border-color: rgba(255, 255, 255, .10);
}

.hero-actions .btn.secondary {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
}

.hero-dots {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .25);
}

.hero-dot.active {
  background: #fff;
  border-color: #fff;
}

@media (max-width: 980px) {
  .hero-inner {
    padding: 34px 22px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-full {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-desc {
    font-size: 14px;
  }
}

/* -------------------- Tables (Admin) -------------------- */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table thead th {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1;
  font-weight: 900;
  color: var(--text);
}

.table tbody tr:hover {
  background: #f8fafc;
}

/* -------------------- Catalog cards -------------------- */
.product-card {
  overflow: hidden;
}

.product-card .thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

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

.product-card .body {
  padding: 14px 14px 16px 14px;
}

.product-card .name {
  font-weight: 900;
  line-height: 1.35;
  margin: 8px 0;
  font-size: 15px;
}

.product-card .price {
  font-weight: 900;
  font-size: 16px;
}

.product-card .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* -------------------- Trust bar -------------------- */
.trustbar {
  background: #0b1220;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
}

.trustbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.trustbar__right {
  color: rgba(255, 255, 255, 0.7);
}

/* -------------------- Nav -------------------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.nav-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.0), rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.0));
  margin: 14px 0 6px;
}


.nav a:not(.btn) {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .08s ease, opacity .2s ease;
}

.btn:hover {
  opacity: .9;
}

.btn:active {
  transform: translateY(1px);
}

.btn.secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid #cbd5e1;
}

.nav a.btn {
  color: #fff;
}

.nav a.btn.secondary {
  color: var(--text);
}

/* -------------------- Typography helpers -------------------- */
.muted {
  color: var(--muted);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
}

.pill--hot {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff5f5;
}

/* -------------------- Cards & layouts -------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.section {
  padding: 18px 0 6px 0;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 18px 0 14px;
}

.section__title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.section__desc {
  color: var(--muted);
  font-weight: 600;
}

/* -------------------- Hero -------------------- */
.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.hero--split {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 18px;
}

.hero__title {
  margin: 0 0 10px 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero__desc {
  margin: 0 0 18px 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}

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

.trustgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.trustcard {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(246, 248, 251, 0.5);
}

.trustcard__title {
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 4px;
}

.trustcard__text {
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.45;
}

.featurepanel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(246, 248, 251, 0.65), #ffffff);
}

.featurepanel__badge {
  display: inline-block;
  margin-bottom: 10px;
}

.featurepanel__media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef2ff;
  aspect-ratio: 16/10;
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featurepanel__name {
  font-size: 16px;
  font-weight: 950;
  margin: 12px 0 6px;
}

.featurepanel__sub {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}

.featurepanel__price {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-weight: 950;
}

.featurepanel__price del {
  color: #94a3b8;
  font-weight: 800;
}

.featurepanel__actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* -------------------- Product grid -------------------- */
.productgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.productcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.productcard__media {
  display: block;
  background: #f1f5f9;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.productcard__body {
  padding: 14px;
}

.productcard__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.productcard__name {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-weight: 950;
  font-size: 16px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.productcard__desc {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
  min-height: 42px;
}

.productcard__price {
  margin-top: 10px;
  font-weight: 950;
  display: flex;
  gap: 10px;
  align-items: center;
}

.productcard__price del {
  color: #94a3b8;
  font-weight: 800;
}

.productcard__hint {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.productcard__actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* -------------------- Detail page -------------------- */
.detail {
  padding: 18px 0;
}

.detail__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.detail__mainimg {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 16/11;
}

.detail__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.thumb__img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f1f5f9;
  flex: 0 0 auto;
}

.detail__title {
  margin: 0 0 8px 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.detail__sub {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}

.detail__price {
  margin-top: 14px;
  font-weight: 950;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 20px;
}

.detail__price del {
  color: #94a3b8;
  font-weight: 800;
}

.detail__actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.specbox {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(246, 248, 251, 0.65);
  line-height: 1.6;
  font-weight: 700;
}

.adminhint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed #cbd5e1;
  color: var(--muted);
  font-weight: 700;

  .admin-actions {
    padding-left: 4px;
  }
}

/* -------------------- Tabs section -------------------- */
.tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.tabcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.tabcard h3 {
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.tabtext {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.65;
  white-space: pre-line;
}

/* -------------------- Forms -------------------- */
.formcard input,
.formcard textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  outline: none;
  font-size: 14px;
}

.formcard input:focus,
.formcard textarea:focus {
  border-color: #64748b;
}

.formrow {
  margin-bottom: 12px;
}

.formrow label {
  display: block;
  font-weight: 900;
  margin-bottom: 6px;
}

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

/* -------------------- Alerts -------------------- */
.alert {
  padding: 10px 14px;
  border-radius: 14px;
  margin: 12px 0;
  border: 1px solid var(--line);
  background: #ffffff;
  font-weight: 700;
}

.alert.success {
  border-color: #86efac;
  background: #f0fdf4;
}

.alert.danger {
  border-color: #fca5a5;
  background: #fef2f2;
}

.alert.warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.alert.info {
  border-color: #93c5fd;
  background: #eff6ff;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 980px) {
  .hero--split {
    grid-template-columns: 1fr;
  }

  .trustgrid {
    grid-template-columns: 1fr;
  }

  .productgrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail__grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    grid-template-columns: 1fr;
  }
}

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


/* ===== Brand v2 Responsive Upgrade ===== */

.container {
  max-width: 1280px;
}

.responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.detail__title {
  font-size: 22px;
}

.detail__price {
  font-size: 18px;
}

.detail__price.inquiry,
.productcard__price.inquiry {
  font-size: 18px;
  font-weight: 800;
  background: #eef2f7;
  padding: 6px 12px;
  border-radius: 8px;
}

@media (min-width: 1400px) {
  .responsive-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ===== Catalog v3 ===== */

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
}

.filters {
  display: flex;
  gap: 12px;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #111;
}

.search-box input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

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

.catalog-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eee;
  overflow: hidden;
  transition: 0.2s;
}

.catalog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.card-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.price.inquiry {
  font-weight: 800;
  color: #0f172a;
}


/* ============================================================
   Catalog v4 (바둑판 그리드 + 필터/검색)
   주석: v3에서 홈 히어로가 삭제되는 문제가 있어 v2 히어로 + v3 그리드를 결합했습니다.
   ============================================================ */

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 18px 0 22px;
  flex-wrap: wrap;
}

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

.filter-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 800;
  font-size: 13px;
}

.filter-btn.active {
  border-color: #94a3b8;
  background: #0f172a;
  color: #fff;
}

.search-box input {
  width: 320px;
  max-width: 72vw;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  outline: none;
  font-weight: 650;
}

.search-box input:focus {
  border-color: #64748b;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.catalog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.catalog-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.catalog-card__media {
  aspect-ratio: 16/10;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.catalog-card__body {
  padding: 14px;
}

.catalog-card__name {
  font-weight: 950;
  letter-spacing: -0.02em;
  margin-top: 8px;
  line-height: 1.35;
}

.catalog-card__price {
  margin-top: 10px;
  font-weight: 950;
  display: flex;
  gap: 10px;
  align-items: center;
}

.catalog-card__price del {
  color: #94a3b8;
  font-weight: 800;
}

.catalog-card__price.inquiry {
  font-size: 14px;
  font-weight: 950;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 12px;
  display: inline-flex;
  width: fit-content;
}

@media (min-width: 1400px) {
  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ===== Featured carousel (대표 장비 롤링) ===== */
.featureslides {
  position: relative;
}

.featureslide {
  display: none;
}

.featureslide.active {
  display: block;
}

.featured-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.featured-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
}

.featured-dots .dot.active {
  background: #0f172a;
  border-color: #0f172a;
}

/* ===== Social login buttons (UI) ===== */
.social-login {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.btn.kakao {
  border: 1px solid #e5e7eb;
  background: #fee500;
  color: #111827;
  font-weight: 950;
}

.btn.naver {
  border: 1px solid #e5e7eb;
  background: #03c75a;
  color: #ffffff;
  font-weight: 950;
}

/* ===== Product detail sizing ===== */
.detail__media {
  max-width: 560px;
}

@media (max-width: 900px) {
  .detail__media {
    max-width: 100%;
  }
}


/* ============================================================
   v10: 카탈로그 3열(PC), 2열(태블릿), 1열(모바일)
   ============================================================ */
@media (min-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 720px) and (max-width: 1099px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* ============================================================
   v10: 상세 탭 1x4(PC), 2x2(태블릿), 1열(모바일)
   ============================================================ */
@media (min-width: 1100px) {
  .tabs {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 720px) and (max-width: 1099px) {
  .tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* V16 fixes */
.product-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.detail__meta-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.admin-panel {
  padding: 18px;
}

.admin-subcard {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fafafa;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #f8fafc;
  margin-bottom: 18px;
}

.admin-eyebrow {
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-title {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 900;
}

.admin-actions-top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stat-card {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 34px;
  font-weight: 900;
}

.admin-block {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
}

.admin-block__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-block__title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 4px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  font-size: 13px;
  color: #64748b;
}

.promo-chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #fca5a5;
  color: #ef4444;
  background: #fff7f7;
  font-weight: 700;
}

@media (max-width:980px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-hero,
  .admin-block__head {
    flex-direction: column;
  }
}


/* 주석: V17 추가 스타일입니다. */
.catalog-card__title,
.product-title,
.detail__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail__sub {
  line-height: 1.7;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px 0;
}

@media (max-width: 1180px) {
  .admin-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

.stat-label {
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
}

.stat-value {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 900;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.admin-actions-top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 20px;
}

.admin-block__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-block__title {
  font-size: 22px;
  font-weight: 900;
}


.tabbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
}

.tabbtn.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.searchbox--inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.searchbox__input {
  flex: 1;
}

.searchbox__btn {
  white-space: nowrap;
}

.tabs--single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

.login-card {
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.login-btn-kakao {
  background: #FEE500;
  color: #191919;
  border-color: #FEE500;
}

.login-btn-kakao-alt {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.login-btn-naver {
  background: #7DD3A6;
  color: #0f172a;
  border-color: #7DD3A6;
}

button[disabled],
.btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

/* ============================================================
   V21 cleanup override
   - 상단 오렌지 라인 제거
   - 히어로 오버레이를 더 밝고 부드럽게 조정
   - 관리자/일반 버튼을 안정적인 네이비 기반으로 정리
   - 기존 레이아웃 유지
   ============================================================ */

.trustbar {
  display: none !important;
}

.nav {
  padding: 22px 0 18px;
}

.brand-link {
  gap: 12px;
}

/* 회사 로고 크기 제한 */
.brand-logo {
  height: 48px;
  /* 주석: 로고 높이 고정 */
  width: auto;
  /* 주석: 비율 유지 */
  object-fit: contain;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, #fb923c 0%, #f97316 55%, #ea580c 100%);
  box-shadow: 0 6px 16px rgba(249, 115, 22, .22);
}

.brand-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.hero-full {
  background: transparent !important;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(98, 24, 45, 0.80) 0%,
      rgba(98, 24, 45, 0.52) 10%,
      rgba(98, 24, 45, 0.30) 18%,
      rgba(98, 24, 45, 0.15) 33%,
      rgba(98, 24, 45, 0.00) 40%) !important;
}

.hero-title {
  color: #ffffff !important;
  text-shadow: 0 3px 12px rgba(15, 23, 42, .18);
}

.hero-desc {
  color: rgba(255, 255, 255, .90) !important;
  text-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}

.hero-kicker {
  background: rgba(255, 255, 255, .12) !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  color: #fff !important;
}

.hero-meta .badge-pill {
  background: rgba(255, 255, 255, .12) !important;
  border-color: rgba(255, 255, 255, .22) !important;
  color: #fff !important;
}

/* HEADER */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

/* 로고 */

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* 메뉴 */

.nav-menu {
  display: flex;
  gap: 32px;
  /* 메뉴 간격 */
  font-weight: 600;
  align-items: center;
}

/* 오른쪽 */

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}


.btn {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}

.btn:hover {
  background: #1e293b !important;
  border-color: #1e293b !important;
  opacity: 1 !important;
}

.btn.secondary {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

.btn.secondary:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.hero-actions .btn {
  background: #f97316 !important;
  border-color: #f97316 !important;
  color: #fff !important;
}

.hero-actions .btn:hover {
  background: #ea580c !important;
  border-color: #ea580c !important;
}

.hero-actions .btn.secondary {
  background: rgba(255, 255, 255, .92) !important;
  color: #9a3412 !important;
  border-color: rgba(255, 255, 255, .92) !important;
}

.hero-actions .btn.secondary:hover {
  background: #ffffff !important;
  color: #9a3412 !important;
  border-color: #ffffff !important;
}

.tabbtn.active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #fff !important;
}

.input:focus,
select.input:focus,
textarea.input:focus {
  border-color: #334155 !important;
  box-shadow: 0 0 0 4px rgba(51, 65, 85, .10) !important;
}

.admin-stat-card:hover,
.admin-block:hover,
.admin-hero:hover,
.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.admin-actions-top .btn,
.admin-block .btn,
.admin-table .btn {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #fff !important;
}

.admin-actions-top .btn:hover,
.admin-block .btn:hover,
.admin-table .btn:hover {
  background: #1e293b !important;
  border-color: #1e293b !important;
}

.btn.danger {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}

.btn.danger:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}

.login-btn-kakao {
  background: #FEE500 !important;
  border-color: #FEE500 !important;
  color: #191919 !important;
}

.login-btn-kakao:hover {
  background: #f8df00 !important;
  border-color: #f8df00 !important;
}

.login-btn-kakao-alt {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #fff !important;
}

.login-btn-kakao-alt:hover {
  background: #111827 !important;
  border-color: #111827 !important;
}

.login-btn-naver {
  background: #03C75A !important;
  border-color: #03C75A !important;
  color: #fff !important;
}

.login-btn-naver:hover {
  background: #02b350 !important;
  border-color: #02b350 !important;
}

/* =========================
   HEADER 기본
========================= */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

/* 메뉴 */

.nav-menu {
  display: flex;
  gap: 28px;
  font-weight: 600;
  white-space: nowrap;
}


/* =========================
   반응형 처리
========================= */

/* 화면 1200px 이하 */

@media (max-width:1200px) {

  .nav-menu {
    gap: 18px;
    font-size: 14px;
  }

}

/* 화면 1000px 이하 */

@media (max-width:1000px) {

  .nav-menu {
    gap: 14px;
    font-size: 13px;
  }

}

/* 화면 860px 이하 */

@media (max-width:860px) {

  .nav-menu {
    display: none;
    /* 메뉴 숨김 */
  }

}

/* -------------------- Checkout -------------------- */
.checkout-wrap {
  display: grid;
  /* 주석: 결제 화면의 썸네일 영역이 과도하게 커지지 않도록 고정 폭을 더 작게 제한합니다. */
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.checkout-media {
  /* 주석: 이미지를 카드 안쪽의 작은 미리보기처럼 보이게 패딩과 최대 높이를 적용합니다. */
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  max-height: 320px;
  margin: 0 auto;
  padding: 18px;
  box-sizing: border-box;
}

.checkout-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.checkout-price {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 16px;
}

.checkout-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-summary {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.checkout-total {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 900;
}

.checkout-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

@media (max-width: 820px) {

  .checkout-wrap,
  .checkout-form-row {
    grid-template-columns: 1fr;
  }
}


.site-main {
  flex: 1 0 auto;
}

.page-fill {
  min-height: calc(100vh - 280px);
}

.home-notice-card {
  padding: 16px 18px;
}

.home-notice-label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
}

.home-notice-title {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.2px;
}

.home-notice-summary {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
}

.home-notice-list {
  display: grid;
  gap: 6px;
}

.home-notice-link {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-notice-action {
  margin-top: 10px;
}

.home-notice-action .btn.secondary {
  padding: 9px 16px;
  font-size: 13px;
}

.home-value-card {
  padding: 14px 16px;
}

.home-value-title {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.home-value-body {
  font-size: 13px;
  line-height: 1.7;
}

.login-page-wrap {
  max-width: 1160px;
  margin: 0 auto;
}

.login-page-grid {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.login-intro-card,
.login-main-card {
  padding: 24px 28px;
}

.login-intro-kicker {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 8px;
}

.login-intro-title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.login-intro-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

.login-main-title {
  margin: 0 0 14px;
  font-size: 18px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 14px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.login-form-stack {
  display: grid;
  gap: 12px;
}

.login-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn.kakao {
  background: #fee500;
  color: #000;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
}

.btn.kakao-dark {
  background: #191919;
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
}

.btn.naver {
  background: #03c75a;
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .home-notice-card {
    padding: 14px 16px;
  }

  .home-notice-title {
    font-size: 14px;
  }

  .home-value-title {
    font-size: 14px;
  }

  .home-value-body,
  .home-notice-summary,
  .home-notice-link {
    font-size: 12px;
  }

  .login-intro-card,
  .login-main-card {
    padding: 20px 18px;
  }
}