/* 
======================================================
    CHEESE HISTORY MODERN STOREFRONT THEME
    "Clean, Modern & Friendly" Design Language
    Inspired by Naver Shopping / Modern E-commerce
======================================================
*/

:root {
  /* Color Palette - Modern & Friendly */
  --primary: #ff4d00;      /* Vibrant Orange (Cheese/Store Identity) */
  --primary-hover: #e64500;
  --gold: #ff4d00;         /* Alias for script compatibility */
  --secondary: #e11d21;    /* Red (From Logo Collar) */
  --bg-main: #ffffff;      /* Clean White Background */
  --bg-faint: #f8f9fa;     /* Light Gray for sections */
  --text-main: #1a1a1a;    /* Near Black for readability */
  --text-muted: #666666;   /* Gray for descriptions */
  --text-light: #999999;   /* Lighter Gray */
  --border-color: #eee;    /* Soft borders */
  
  /* Naver Shopping-ish Accents */
  --nav-bg: #ffffff;
  --search-border: #ff4d00;
  
  /* Fonts - Optimized for Korean & English Mixing */
  --font-heading: 'Noto Sans KR', 'Pretendard', 'Inter', -apple-system, sans-serif;
  --font-body: 'Noto Sans KR', 'Pretendard', 'Inter', -apple-system, sans-serif;

  /* Misc */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: all 0.2s ease-in-out;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.08);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ====================================
    Animations & Utils
==================================== */
.fade-in {
  opacity: 0;
  transition: opacity 1s ease-out;
  will-change: opacity;
}

.fade-in.visible {
  opacity: 1;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: opacity, transform;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Feature Specific Scroll Effects */
.feature-image {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.feature-series-section.reverse .feature-image {
  transform: translateX(40px);
}
.feature-image.visible {
  opacity: 1;
  transform: translateX(0);
}

.feature-content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out 0.2s; /* 살짝 늦게 시작 */
}
.feature-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary-glow {
  background: var(--primary);
  color: white;
  padding: 16px 40px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(255, 77, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary-glow:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 77, 0, 0.4);
}

.btn-outline {
  padding: 16px 40px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid var(--border-color);
  color: var(--text-main);
  transition: var(--transition);
}

.btn-outline:hover {
  background: #f8f9fa;
  border-color: #ddd;
}

/* ====================================
    Navigation
==================================== */
.glass-nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #111;
  cursor: pointer;
  padding: 4px;
}

/* Updated Brand Logo Style */
.brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand img {
  height: 40px; /* Resize as needed */
  width: auto;
}

.brand span {
  color: var(--primary);
}

/* Search Bar (Naver Style) */
.nav-search {
  flex: 1;
  max-width: 500px;
  margin: 0 40px;
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: 2px 2px 2px 20px;
  background: white;
}

.nav-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  padding: 8px 0;
}

.btn-search {
  background: var(--primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links li a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links li a:hover {
  color: var(--primary);
  background: #fff5f0;
}

.nav-btn {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
}

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

/* ====================================
    Hero Section
==================================== */
.hero-section {
  background: linear-gradient(180deg, #fff5f0 0%, #ffffff 100%);
  height: calc(100vh - 70px); /* Fill the screen */
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 140%;
  height: 100%;
  top: -50%;
  left: -20%;
  background: radial-gradient(circle, rgba(255, 77, 0, 0.03) 0%, transparent 60%);
  z-index: 1;
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  text-align: center; /* Center align for simple, direct message */
  max-width: 800px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center; /* Center actions */
  margin-top: 40px;
}

.hero-image-v2 {
  flex: 1.2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-image-v2 img {
  width: 100%;
  display: block;
}

.subtitle {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #1a1a1a;
  word-break: keep-all;
}

.description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(255, 77, 0, 0.2);
}

.btn-secondary {
  background: #f1f1f1;
  color: #333;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ====================================
    Products Grid
==================================== */
.collection-section {
  padding: 60px 24px;
  background: var(--bg-faint);
}

.listing-container {
  padding: 60px 24px 120px !important; /* Plenty of space before footer */
  background: #f8f9fa;
}

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); /* 2 columns on desktop */
  gap: 24px;
  max-width: 1400px; /* Expand for density */
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  display: flex;
  flex-direction: row; 
  min-height: 200px; /* Compact height */
}

.btn-wish {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 10;
  transition: transform 0.2s;
}

.btn-wish:hover {
  transform: scale(1.1);
}

.btn-wish.active {
  color: #ff4d00;
}

.btn-wish-detail {
  width: 50px;
  height: 50px;
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 12px;
}

.btn-wish-detail:hover {
  background: #fff;
  border-color: #ddd;
  transform: translateY(-2px);
}

.btn-wish-detail.active {
  background: #fff5f0;
  border-color: #ffe0d6;
}



.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.product-image {
  width: 200px; /* Compact width for density */
  height: auto;
  background: #fdfdfd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem; /* Adjusted for smaller size */
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border-right: 1px solid var(--border-color);
}

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.02) 100%);
  z-index: 1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Professional look for items */
  padding: 40px;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 2;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

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

.category {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-info h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #111;
  line-height: 1.4;
}

.product-info p {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.original-price {
  font-size: 0.85rem;
  color: #aaa;
  text-decoration: line-through;
  font-weight: 500;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discount-rate {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ff4d00; /* Vibrant Orange/Red for discount */
}

.final-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #000;
}

.product-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.btn-buy-v2 {
  flex: 1;
  background: var(--primary);
  color: white;
  padding: 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ====================================
    Feature Series Section
==================================== */
.feature-series-section {
  padding: 80px 24px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}

.feature-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.feature-series-section.reverse .feature-container {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feature-image img {
  width: 100%;
  display: block;
}

.feature-content {
  flex: 1;
}

.feature-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #111;
  line-height: 1.2;
}

.feature-content h2 span {
  display: block;
  font-size: 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.feature-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.feature-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-link:hover {
  text-decoration: underline;
}

/* ====================================
    Quick Categories Section
==================================== */
.quick-category-section {
  padding: 100px 24px;
  background: white;
  text-align: center;
}

.quick-category-section .section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.quick-category-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin-bottom: 50px;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.cat-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  text-align: left;
}

.cat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 77, 0, 0.1);
  border-color: rgba(255, 77, 0, 0.2);
}

.cat-card .icon {
  font-size: 3rem;
  margin-bottom: 24px;
  display: block;
}

.cat-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.cat-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* ====================================
    Storefront Specific Animations
==================================== */
.story-section {
  padding: 100px 24px;
  background: #fff5f0;
  text-align: center;
}

.story-container {
  max-width: 800px;
  margin: 0 auto;
}

.story-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 30px;
  color: #1a1a1a;
}

.story-text p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
}

/* ====================================
    Footer
==================================== */
footer {
  background: #333;
  color: #fff;
  padding: 60px 24px 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.6;
}

.link-group h4 {
  margin-bottom: 20px;
  font-size: 1rem;
}

.link-group a {
  display: block;
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: 0.2s;
}

.link-group a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

/* Auth Modal Styles - Premium Refresh */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000; /* 모바일 드로어(2000)보다 높게 설정 */
  backdrop-filter: blur(8px);
  padding: 20px;
}

.auth-modal-overlay.active {
  display: flex;
}

.auth-modal-content {
  background: #fff;
  width: 100%;
  max-width: 440px;
  padding: 48px 40px;
  border-radius: 28px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.auth-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  background: #f1f1f1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #666;
  transition: var(--transition);
}

.auth-close-btn:hover {
  background: #e5e5e5;
  color: #111;
}

.auth-modal-logo {
  height: 64px;
  margin-bottom: 24px;
}

/* Modern Segmented Tab Control */
.auth-tabs {
  display: flex;
  background: #f1f1f1;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 32px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #666;
  transition: var(--transition);
}

.auth-tab.active {
  background: #fff;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.auth-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  color: #111;
  margin-bottom: 12px;
}

.auth-title span {
  color: var(--primary);
}

.auth-desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 40px;
  word-break: keep-all;
}

.auth-desc strong {
  display: block;
  margin-top: 8px;
  color: #111;
}

.btn-social {
  width: 100%;
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #111;
  transition: var(--transition);
  background: #fff;
  margin-bottom: 24px;
}

.btn-social:hover {
  border-color: #ccc;
  background: #fafafa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-social img {
  width: 24px;
}

.auth-footnote {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.5;
}

.auth-footnote a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

/* Animations - Smoother Reveal */
.auth-modal-content {
  animation: modalReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .auth-modal-content {
    padding: 40px 24px;
  }
}

/* ====================================
    Responsive Media Queries (Mobile Optimization)
==================================== */
@media (max-width: 1024px) {
  .nav-container, .hero-container, .section-container, .feature-container, .dashboard-container, .detail-page-container {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-container {
    padding: 12px 16px;
    flex-wrap: wrap;
    align-items: center;
  }
  .brand-wrapper { order: 2; flex: 1; }
  .hamburger-btn { display: block; order: 1; margin-right: 10px; }
  .brand img {
    height: 30px;
  }
  .brand {
    font-size: 1.05rem;
  }
  .nav-search {
    order: 3;
    width: 100%;
    margin: 12px 0 0 0;
  }
  .search-input-wrapper {
    border-width: 1px;
    background: #fff;
  }
  .search-input-wrapper input {
    font-size: 0.95rem;
  }

  /* Side Drawer Overlay */
  .drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .drawer-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Side Drawer Content (Left Slide) */
  .nav-links {
    position: fixed;
    top: 0;
    left: -320px; /* Hide outside the left screen */
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin: 0;
    box-shadow: 4px 0 25px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; /* keep flex, but off-screen */
  }
  .nav-links.active {
    left: 0; /* Slide in */
  }
  
  .nav-links-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
  }
  .drawer-close-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
  }

  /* Drawer Log-out / Log-in prominent button */
  .drawer-auth-btn {
    background: #111 !important; /* Prominent dark tone */
    color: #fff !important;
    font-weight: 800 !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
    border: none;
    text-align: center;
    margin-left: auto; /* Push to right */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .nav-links li {
    width: 100%;
    padding: 0 16px;
    margin-bottom: 4px;
  }
  /* Desktop login button wrapper hidden in mobile */
  .desktop-login-li {
    display: none !important;
  }

  .nav-links li a, .nav-links li .nav-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 16px !important;
    font-size: 1.05rem !important;
    font-weight: 700;
    color: #333;
    background: transparent;
    border-radius: 8px;
    border: none;
  }
  .nav-links li a:active, .nav-links li .nav-btn:active {
    background: #f8f9fa;
  }

  /* Hero Section - Full Height for Focus */
  .hero-section {
    height: calc(100vh - 60px);
    padding: 20px 0;
    margin: 0;
    background: linear-gradient(180deg, #fff5f0 0%, #ffffff 100%);
  }
  .hero-container {
    padding: 0 24px;
    height: 100%;
  }
  .hero-content .title {
    font-size: 2rem;
    word-break: keep-all;
  }
  .hero-content .description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #555;
  }
  .hero-actions {
    gap: 12px;
  }
  .btn-primary-glow {
    padding: 14px 24px;
    font-size: 1rem;
  }
  .btn-outline {
    padding: 14px 24px;
    font-size: 1rem;
    background: white;
  }
  .hero-image-v2 {
    max-width: 85%;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  }

  /* Quick Categories */
  .quick-category-section {
    padding: 50px 16px;
  }
  .quick-category-section h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }
  .category-grid {
    gap: 16px;
  }
  .cat-card {
    padding: 30px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .cat-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .cat-card h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }
  .cat-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Products & Other Pages */
  .grid-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-card {
    flex-direction: column; /* Stack on mobile */
    min-height: auto;
  }
  .product-image {
    width: 100%;
    height: 220px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    font-size: 4rem;
  }
  .product-info {
    padding: 24px;
  }
  .product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  .products-page-header {
    padding: 40px 20px !important;
  }
  .products-page-header .title {
    font-size: 1.8rem !important;
  }
  .products-page-header .description {
    font-size: 0.95rem !important;
    margin-bottom: 24px !important;
  }

  /* Sidebar Grid for Mobile */
  .sidebar-menu {
    gap: 8px;
  }
  .menu-item a {
    border-radius: 12px;
    background: #f8f9fa;
  }
}

/* Premium Toast Notification */
.premium-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 5000;
    min-width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 20px;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-toast.active { transform: translateX(0); }
.premium-toast.hide { opacity: 0; transform: translateY(20px); }

.toast-content { display: flex; align-items: flex-start; gap: 16px; }
.toast-icon { font-size: 1.5rem; }
.toast-text h4 { margin-bottom: 4px; font-size: 1rem; font-weight: 700; color: #111; }
.toast-text p { font-size: 0.9rem; color: #555; line-height: 1.4; }
.toast-close { background: none; border: none; font-size: 1.2rem; color: #aaa; cursor: pointer; padding: 0; }

/* Premium Global Modal (Alert/Confirm) */
.premium-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.premium-modal-overlay.active { display: flex; }

.premium-modal-card {
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalScale 0.3s ease-out;
}

@keyframes modalScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-icon { font-size: 3rem; margin-bottom: 20px; }
.modal-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; color: #111; }
.modal-desc { font-size: 1rem; color: #555; line-height: 1.6; margin-bottom: 32px; word-break: keep-all; }

.modal-btns { display: flex; gap: 12px; justify-content: center; }
.btn-confirm { 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    padding: 12px 32px; 
    border-radius: 12px; 
    font-weight: 700; 
    cursor: pointer;
    transition: 0.2s;
}
.btn-confirm:hover { background: var(--primary-hover); }

.btn-cancel-modal { 
    background: #f1f1f1; 
    color: #666; 
    border: none; 
    padding: 12px 32px; 
    border-radius: 12px; 
    font-weight: 700; 
    cursor: pointer;
}

/* Detail Page Price System (Naver Style) */
.detail-price-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-original-price {
  font-size: 1.1rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 500;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.detail-discount-rate {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ff4d00;
}

.detail-final-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: #000;
}

/* ====================================
    Premium Detail Page Refresh
==================================== */
.detail-breadcrumb {
    font-size: 0.8rem;
    font-weight: 500;
    color: #bbb;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.benefit-card-v2 {
    background: #ffffff;
    border: 1px solid #f2f2f2;
    padding: 32px;
    border-radius: 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.02);
}

.benefit-title-v2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.benefit-list-v2 {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.benefit-item-v2 {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #666;
}

.benefit-item-v2 span:last-child {
    color: #111;
    font-weight: 700;
}

.coupon-section-v2 {
    margin-top: 24px;
    background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
    border: 1px solid #ffd8c1;
    padding: 24px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.coupon-section-v2::before {
    content: 'COUPON';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 77, 0, 0.03);
    pointer-events: none;
}

.coupon-section-v2 .title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input-v2 {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.coupon-input-v2:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.1);
}

.btn-coupon-apply {
    padding: 0 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-coupon-apply:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.delivery-badge-v2 {
    background: #fff;
    border: 1px solid #eee;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #555;
    margin: 20px 0;
}

.delivery-badge-v2 strong {
    color: var(--primary);
}

.detail-actions-v2 {
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    gap: 12px;
    margin-top: 32px;
}

.btn-wish-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-wish-circle:hover {
    background: #fdfdfd;
    transform: scale(1.05);
}

.btn-wish-circle.active {
    background: #fff5f0;
    border-color: #ffd8c1;
    color: var(--primary);
}

.btn-buy-now {
    background: linear-gradient(135deg, #ff6b21 0%, #ff4d00 100%);
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 77, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-buy-now:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 77, 0, 0.3);
}

.btn-cart-add {
    background: white;
    color: #111;
    border: 1px solid #ddd;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cart-add:hover {
    background: #f9f9f9;
    border-color: #bbb;
}

.tab-menu-v2 {
    display: flex;
    justify-content: center;
    gap: 60px;
    border-bottom: 2px solid #f0f0f0;
    margin-top: 100px;
    padding-bottom: 0;
    position: sticky;
    top: 70px;
    background: white;
    z-index: 100;
}

.tab-link-v2 {
    padding: 24px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #888;
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
}

.tab-link-v2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: #111;
    transition: all 0.3s;
}

.tab-link-v2.active {
    color: #111;
}

.tab-link-v2.active::after {
    width: 100%;
}

.tab-link-v2:hover {
    color: #111;
}

/* Tab Content Display */
.tab-pane-v2 {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-pane-v2.active {
    display: block;
}

/* ====================================
    Naver Shopping Style Extensions
==================================== */
.purchase-calculation-v2 {
    margin: 32px 0 24px;
    padding: 24px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.quantity-row-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.qty-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.qty-control button {
    width: 36px;
    height: 36px;
    border: none;
    background: #f8f8f8;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-control button:hover {
    background: #eee;
}

.qty-control input {
    width: 45px;
    height: 36px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    background: #fff;
}

.total-price-row-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.total-label {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

.total-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
}

/* Product Spec Table */
.product-spec-v2 {
    margin-bottom: 40px;
}

.spec-table-v2 {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #333;
    font-size: 0.88rem;
}

.spec-table-v2 th {
    width: 15%;
    padding: 14px 18px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    text-align: left;
    color: #666;
    font-weight: 500;
}

.spec-table-v2 td {
    width: 35%;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    color: #111;
    font-weight: 400;
}

@media (max-width: 768px) {
    .spec-table-v2 th { width: 35%; padding: 10px 14px; }
    .spec-table-v2 td { width: 65%; display: block; border-bottom: none; width: 100%; padding: 6px 14px 14px; }
    .spec-table-v2 tr { display: flex; flex-direction: column; border-bottom: 1px solid #eee; }
    .total-value { font-size: 1.5rem; }
}

@media (max-width: 860px) {
  .hero-container { flex-direction: column; text-align: center; }
  .title { font-size: 2rem; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 480px) {
  .products-page-header .title { font-size: 2rem !important; }
  .products-page-header { padding: 30px 16px !important; }
  .hero-content .title { font-size: 1.6rem !important; }
  .detail-top-grid, .detail-page-container { margin-bottom: 20px; }
  .detail-image-v2 { height: auto; max-height: 300px; }
  .price-v2 { font-size: 2rem; }
}