/* ==========================================================================
   PREMIUM DESIGN SYSTEM - T-WORLD KOREA (LIGHT THEME)
   ========================================================================== */

/* 1. Global Variables & Design Tokens */
:root {
  /* Color Palette (LIGHT MODE) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f1f3f5;
  --text-primary: #1a1a1a;
  --text-secondary: #495057;
  --text-muted: #868e96;
  
  --accent-primary: #0066cc; /* Premium Royal Blue */
  --accent-hover: #004aa6;
  --accent-glow: rgba(0, 102, 204, 0.08);
  
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --card-hover-border: rgba(0, 102, 204, 0.4);
  
  --overlay-bg: rgba(0, 0, 0, 0.45);
  --modal-bg: rgba(255, 255, 255, 0.98);
  --modal-border: rgba(0, 0, 0, 0.1);
  
  /* Fonts */
  --font-display: 'Outfit', 'Inter', 'Noto Sans KR', sans-serif;
  --font-body: 'Inter', 'Noto Sans KR', sans-serif;
  
  /* Layout */
  --max-width: 1320px;
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  --shadow-glow: 0 0 20px var(--accent-glow);
  --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 20px 40px rgba(0, 102, 204, 0.06);
}

/* 2. Reset & Base Settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  outline: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Screen reader only helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* 3. Ambient Glow Effects (Soft for Light Mode) */
.glow-bg {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

.glow-1 {
  top: -10vw;
  right: -10vw;
}

.glow-2 {
  top: 50vw;
  left: -20vw;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.02) 0%, rgba(255, 255, 255, 0) 70%);
}

/* 4. Common Components (Buttons, Containers) */
.section-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .subtitle {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--accent-primary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #1a1a1a 30%, #495057 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

.subtitle {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--accent-primary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* 5. Header Area */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--accent-primary);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.brand-main {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.highlight {
  border: 1.5px solid var(--accent-primary);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  color: var(--accent-primary);
  background-color: rgba(0, 102, 204, 0.03);
}

.nav-link.highlight:hover {
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.nav-link.highlight::after {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* 6. Hero Section */
.hero-section {
  min-height: 100vh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + 60px) 24px 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1a1a1a 40%, #495057 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 400;
}

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

.hero-media-wrapper {
  position: relative;
  height: 620px; /* 세로형 모델컷 비율(3:4) 최적화 */
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--card-border);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease-out;
}

.slide.active .hero-img {
  transform: scale(1.08); /* 롤링 활성화 시 서서히 커지는 시각적 효과 */
}

/* 슬라이더 컨트롤 스타일 */
.slide-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s, transform 0.2s;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-nav-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.05);
}

.slide-nav-btn.prev {
  left: 16px;
}

.slide-nav-btn.next {
  right: 16px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.slider-dots .dot.active {
  background: white;
  width: 20px;
  border-radius: 4px;
}

/* 7. Quick Categories Card Section */
.quick-categories {
  padding: 60px 0;
  position: relative;
  z-index: 10;
  background-color: var(--bg-secondary);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.quick-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 32px 24px;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.quick-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(0, 102, 204, 0.03), transparent 40%);
  z-index: -1;
}

.quick-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color var(--transition-fast);
  color: var(--text-primary);
}

.quick-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.quick-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 30px rgba(0, 102, 204, 0.08);
}

.quick-card:hover h3 {
  color: var(--accent-primary);
}

/* 8. Catalog Filtering Panel */
.catalog-section {
  padding: 100px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.filter-panel {
  background-color: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-top {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  flex: 1;
  position: relative;
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  padding: 14px 20px 14px 50px;
  display: flex;
  align-items: center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--accent-primary);
  background-color: #fff;
  box-shadow: var(--shadow-glow);
}

.search-icon {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.sort-box select {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  padding: 14px 20px;
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.sort-box select:hover, .sort-box select:focus {
  border-color: var(--accent-primary);
  background-color: #fff;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

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

.filter-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.filter-btn.active {
  background-color: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.catalog-status {
  margin-bottom: 24px;
}

.result-count {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.result-count span {
  color: var(--accent-primary);
  font-weight: 700;
}

/* 9. Product Grid & Card Elements */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.product-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 102, 204, 0.08);
}

.product-media-container {
  width: 100%;
  padding-bottom: 125%; /* 4:5 ratio */
  position: relative;
  background-color: #f1f3f5;
  overflow: hidden;
  cursor: pointer;
}

.product-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-normal), transform var(--transition-slow);
}

.product-card-img.back-img {
  opacity: 0;
}

/* 호버 시 뒷면 이미지 페이드인 및 줌 효과 */
.product-card:hover .product-card-img.front-img {
  opacity: 0;
}

.product-card:hover .product-card-img.back-img {
  opacity: 1;
  transform: scale(1.03);
}

.product-card:hover .product-card-img.single-img {
  transform: scale(1.05);
}

.product-card-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-code {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.product-card:hover .product-card-title {
  color: var(--accent-primary);
}

.product-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.badge-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
}

.badge-chip.accent-chip {
  background-color: rgba(0, 102, 204, 0.06);
  border-color: rgba(0, 102, 204, 0.15);
  color: var(--accent-primary);
}

.product-card-footer {
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-colors-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-details-btn {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-details-btn svg {
  transition: transform var(--transition-fast);
}

.product-card:hover .card-details-btn svg {
  transform: translateX(4px);
}

/* No results view */
.no-results {
  text-align: center;
  padding: 80px 24px;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  border: 1px dashed rgba(0, 0, 0, 0.12);
}

.no-results h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.no-results p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* 10. About Section */
.about-section {
  padding: 120px 0;
  background-color: var(--bg-secondary);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-info h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1a1a1a 40%, #495057 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.about-showcase {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.showcase-card {
  background-color: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 32px;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.showcase-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent-primary);
}

.showcase-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
}

.showcase-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(8px);
  box-shadow: 0 10px 25px rgba(0, 102, 204, 0.06);
}

/* 11. Inquiry Form Section */
.inquiry-section {
  padding: 100px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.inquiry-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.inquiry-intro h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.inquiry-intro p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 40px;
  font-weight: 400;
}

.contact-direct {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.contact-item strong {
  display: block;
  font-family: var(--font-display);
  color: var(--accent-primary);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.inquiry-form {
  background-color: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-group input, .form-group textarea {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  padding: 14px 20px;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-primary);
  background-color: #fff;
  box-shadow: var(--shadow-glow);
}

.inquiry-form textarea {
  resize: vertical;
}

/* 12. Modal Window Layout (Glassmorphism Light Modal) */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: var(--overlay-bg);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background-color: var(--modal-bg);
  border: 1px solid var(--modal-border);
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  border-radius: var(--border-radius-lg);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
  transform: translateY(40px) scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-window {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #f1f3f5;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.modal-body-content {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 500px;
}

/* Modal Gallery */
.modal-gallery {
  padding: 40px;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: var(--bg-secondary);
}

.main-preview-frame {
  width: 100%;
  padding-bottom: 120%; /* 5:6 ratio */
  position: relative;
  background-color: #fff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.main-preview-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.thumb-card {
  width: 100%;
  padding-bottom: 100%;
  position: relative;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.thumb-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.thumb-card.active {
  border-color: var(--accent-primary);
}

/* Modal Details */
.modal-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: #ffffff;
}

.details-header {
  margin-bottom: 30px;
}

.product-code {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  margin-bottom: 32px;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.spec-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* Swatches */
.detail-colors-section {
  margin-bottom: 32px;
}

.color-swatch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.15);
  border-color: rgba(0, 0, 0, 0.5);
}

.color-swatch.active {
  border-color: var(--accent-primary);
  transform: scale(1.15);
  box-shadow: var(--shadow-glow);
}

.selected-color-info-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn var(--transition-fast) forwards;
}

.color-spec-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-preview-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-spec-header h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.color-spec-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.color-spec-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 10px;
}

.color-spec-body div {
  display: flex;
  flex-direction: column;
}

.color-spec-body span {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 600;
}

.color-spec-body strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Size Table */
.detail-sizes-section {
  margin-bottom: 32px;
}

.size-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
}

.size-spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.size-spec-table th, .size-spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.size-spec-table th {
  background-color: var(--bg-secondary);
  font-weight: 700;
  color: var(--text-secondary);
}

.size-spec-table tr:last-child td {
  border-bottom: none;
}

.size-spec-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

.detail-actions {
  margin-top: auto;
}

/* 13. Footer Area */
.site-footer {
  background-color: #111111;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 80px 0 40px;
  color: #fff;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  color: #fff;
}

.footer-brand p {
  color: #c5c6c7;
  font-weight: 400;
}

.footer-info {
  text-align: right;
  font-size: 0.85rem;
  color: #8b949e;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.85rem;
  color: #8b949e;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #c5c6c7;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

/* 14. Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 15. Responsive Design */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: calc(var(--header-height) + 40px);
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-media-wrapper {
    height: 380px;
  }
  
  .hero-image-card {
    width: 220px;
    height: 300px;
  }
  
  .hero-image-card.secondary {
    width: 180px;
    height: 240px;
  }
  
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .inquiry-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .modal-body-content {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .modal-gallery, .modal-details {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  
  .modal-gallery {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 60px 40px;
    gap: 30px;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 100;
  }
  
  .site-nav.open {
    transform: translateX(0);
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .filter-top {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-panel {
    padding: 20px;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-info {
    text-align: left;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .inquiry-form {
    padding: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .modal-gallery, .modal-details {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .detail-spec-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .product-title {
    font-size: 1.35rem;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  
  .modal-gallery, .modal-details {
    padding: 16px !important;
  }
  
  .size-spec-table th, .size-spec-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .detail-order-options {
    padding: 15px !important;
  }
  
  .color-swatch-list {
    gap: 8px;
  }
  
  .color-swatch {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   TB-ORDER & ADMIN DASHBOARD ADDITIONAL STYLES
   ========================================================================== */

/* Qty Stepper Styles */
.qty-stepper button {
  background-color: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color var(--transition-fast);
}
.qty-stepper button:hover {
  background-color: rgba(0, 0, 0, 0.08) !important;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-stepper input[type=number] {
  -moz-appearance: textfield;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
}
.status-badge.pending {
  background-color: rgba(255, 193, 7, 0.15);
  color: #d39e00;
  border: 1px solid rgba(255, 193, 7, 0.3);
}
.status-badge.accepted {
  background-color: rgba(0, 123, 255, 0.1);
  color: #007bff;
  border: 1px solid rgba(0, 123, 255, 0.2);
}
.status-badge.shipping {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.2);
}
.status-badge.cancelled {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Status Selector inside Admin Panel */
.status-select {
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}
.status-select:hover {
  border-color: var(--accent-primary);
}

/* Admin Table Custom styles */
.admin-orders-table th, .admin-orders-table td {
  padding: 16px;
  border-bottom: 1px solid var(--card-border);
  vertical-align: middle;
}
.admin-orders-table tbody tr:hover {
  background-color: rgba(0, 102, 204, 0.01);
}
.admin-orders-table td strong {
  color: var(--text-primary);
}

/* Admin Stat Card Glow */
.admin-stat-card {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition-fast);
}
.admin-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary) !important;
}

/* Navbar welcome styles */
.nav-user-welcome {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  margin: 0 10px;
}
@media (max-width: 768px) {
  .nav-user-welcome {
    border-left: none;
  }
}

/* Product Detail Page Wrapper Styles */
.product-page-wrapper {
  margin-top: 40px;
  animation: fadeIn var(--transition-normal) forwards;
}
.product-page-wrapper .modal-body-content {
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.product-page-wrapper .modal-gallery {
  padding: 50px 40px;
}
.product-page-wrapper .modal-details {
  padding: 50px 40px;
}

/* 모바일 뷰 상세 페이지 패딩 최적화 */
@media (max-width: 768px) {
  .product-page-wrapper .modal-gallery,
  .product-page-wrapper .modal-details {
    padding: 24px;
  }
}
@media (max-width: 480px) {
  .product-page-wrapper .modal-gallery,
  .product-page-wrapper .modal-details {
    padding: 16px;
  }
}

/* Card click robustness */
.product-card {
  cursor: pointer;
}
.card-details-btn {
  pointer-events: none; /* 관통 클릭 방지 및 카드 이벤트 보장 */
}

/* 🛠️ 관리자 확장 UI 전용 스타일 */
.admin-tabs .tab-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
}

.admin-tabs .tab-btn.active {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.admin-tabs .tab-btn:hover:not(.active) {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

/* 상품 선택 리스트 버튼 스타일 */
.admin-product-btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-product-btn:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.admin-product-btn.active {
  background-color: #eef6ff;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

.admin-product-btn span.badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  background-color: var(--card-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-muted);
}

.admin-product-btn.active span.badge {
  background-color: var(--accent-primary);
  color: #ffffff;
}

/* Shopping Cart Styles */
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ff3b30;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 6px;
  min-width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

#nav-cart:hover .cart-badge {
  transform: scale(1.15);
}

.cart-item-row {
  transition: background-color var(--transition-fast);
}

.cart-item-row:hover {
  background-color: var(--bg-secondary);
}

.cart-item-delete:hover {
  background-color: rgba(255, 59, 48, 0.08);
}



