/* ==========================================================================
   Design System & Root Variables
   ========================================================================== */
:root {
  /* Color Palette */
  --bg-color: #FBFBFA;          /* Soft Off-White */
  --bg-secondary: #F5F4F0;     /* Warm Sand/Neutral */
  --bg-tertiary: #ECEBE9;      /* Light Warm Gray */
  --text-primary: #2C2C2B;     /* Soft Charcoal */
  --text-secondary: #656360;   /* Muted Taupe-Gray */
  --text-muted: #9E9C97;       /* Muted Gray */
  --accent-taupe: #A89685;     /* Warm Taupe */
  --accent-beige: #D5C3B3;     /* Calm Beige */
  --accent-dark: #1A1A19;      /* Deep Matte Charcoal */
  --border-color: #E2E0DB;     /* Warm Gray Border */
  --white: #FFFFFF;

  /* Typography */
  --font-sans: 'Outfit', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Cormorant Garamond', serif;

  /* Layout Constants */
  --header-height-desktop: 90px;
  --header-height-mobile: 70px;
  --max-width: 1440px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease-out;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow: hidden;
}

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

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

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

/* Typography Utility */
.serif {
  font-family: var(--font-serif);
  font-weight: 300;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.container-fluid {
  width: 100%;
  padding: 0 40px;
}

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

.text-center {
  text-align: center;
}

section {
  position: relative;
}

section:not(.hero-section) {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: 900; /* Underneath header (1000) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s;
  overflow-y: auto;
  padding: 150px 0 100px 0; /* Space for header and top padding */
}

section.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.section-close-btn {
  position: fixed;
  top: 130px;
  right: 40px;
  font-size: 32px;
  font-weight: 200;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 950;
  transition: var(--transition-smooth);
  line-height: 1;
}

.section-close-btn:hover {
  color: var(--accent-taupe);
  transform: rotate(90deg) scale(1.1);
}

@media (max-width: 768px) {
  section:not(.hero-section) {
    padding: 110px 0 60px 0;
  }
  .section-close-btn {
    top: 95px;
    right: 24px;
    font-size: 26px;
  }
}

.mobile-only {
  display: none !important;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent-taupe);
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.section-title-serif {
  font-size: 2.8rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-top: -15px;
  margin-bottom: 50px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  border-radius: 0; /* Minimalist Square Corners */
}

.btn-outline {
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  background-color: transparent;
}

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

.btn-solid {
  background-color: var(--text-primary);
  color: var(--white);
  border: 1px solid var(--text-primary);
}

.btn-solid:hover {
  background-color: var(--accent-taupe);
  border-color: var(--accent-taupe);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 11px;
}

.arrow-icon {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn:hover .arrow-icon {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height-desktop);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

/* Header Scroll State */
.site-header.scrolled {
  height: 70px;
  background-color: rgba(251, 251, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

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

.logo-link {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.18em;
  color: var(--text-primary);
}

/* Desktop Menu Layout */
.nav-desktop .nav-list {
  display: flex;
  list-style: none;
  gap: 40px;
  height: 100%;
  align-items: center;
}

.nav-desktop .nav-item {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  padding: 10px 0;
  position: relative;
}

/* Underline Hover Animation */
.nav-desktop .nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

.nav-desktop .nav-item:hover::after {
  width: 100%;
}

/* Dropdown Menu (PC Hover) */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  min-width: 200px;
  list-style: none;
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.dropdown-item {
  display: block;
  padding: 10px 24px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.dropdown-item:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/* Show Dropdown on Hover (PC) */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Hamburger Trigger */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   Mobile Side Navigation Menu
   ========================================================================== */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background-color: var(--white);
  z-index: 1010;
  transform: translateX(100%);
  transition: var(--transition-smooth);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.nav-mobile.active {
  transform: translateX(0);
}

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

.mobile-logo {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.close-btn {
  font-size: 28px;
  font-weight: 200;
  cursor: pointer;
  color: var(--text-primary);
  line-height: 1;
}

.mobile-nav-list {
  list-style: none;
  padding: 20px 0;
  overflow-y: auto;
}

.mobile-nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-align: left;
}

.mobile-nav-item:active {
  background-color: var(--bg-secondary);
}

/* Accordion Arrow */
.accordion-toggle .arrow {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-primary);
  border-bottom: 1.5px solid var(--text-primary);
  transform: rotate(45deg);
  transition: var(--transition-fast);
  margin-right: 5px;
}

.accordion-toggle.active .arrow {
  transform: rotate(-135deg);
}

/* Accordion Sub-menu */
.mobile-sub-menu {
  list-style: none;
  background-color: var(--bg-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-sub-item {
  display: block;
  padding: 14px 40px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Overlay Backplane */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1005;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  background-color: var(--bg-secondary);
  background-image: url('assets/hero_bg.jpg'); /* Elegantly backgrounded */
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(251, 251, 250, 0.85); /* Highly faded to give minimalist white vibe */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-title {
  font-size: 4rem;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 40px;
}

.hero-scroll-btn {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-top: 40px;
  position: relative;
}

.scroll-arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--text-secondary);
  border-bottom: 1px solid var(--text-secondary);
  transform: rotate(45deg);
  margin: 0 auto;
  animation: bounceArrow 2s infinite;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.5; }
  50% { transform: translateY(10px) rotate(45deg); opacity: 1; }
}

/* ==========================================================================
   ABOUT Section
   ========================================================================== */
.about-section {
  background-color: var(--bg-color);
}

.about-body {
  margin-top: 60px;
}

.intro-text {
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 2.0;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-align: center;
  word-break: keep-all;
  margin-bottom: 60px;
}

/* ==========================================================================
   OUR BRAND Section (PC Split, 55%+ Whitespace)
   ========================================================================== */
.brand-section {
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.brand-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr; /* Elegant proportions */
  gap: 55px; /* Reduced gap between text and photo */
  align-items: center;
  max-width: 960px; /* Center-aligned tighter container to pull content closer */
  margin: 0 auto;
}

.brand-content-col {
  padding-right: 0; /* Remove padding to bring text closer to the image */
}

#our-brand .section-tag {
  font-size: 13px; /* Increased by 2px (from 11px) */
}

.brand-subtitle-kr {
  display: block;
  font-size: 16px; /* Increased by 2px (from 14px) */
  font-weight: 500;
  color: var(--text-secondary); /* Darker gray color */
  letter-spacing: 0.08em;
  margin-bottom: 110px; /* Adjusted so total gap with pseudo-line margin is 150px (approx. 4cm) */
}

.brand-title {
  font-size: 3.125rem; /* Increased from 3rem (48px -> 50px) */
  letter-spacing: 0.05em;
  margin-left: -6px; /* Optically align VIVID with Noto Sans KR text left-edge (increased to -6px for perfect stem alignment) */
  margin-bottom: 8px; /* Close proximity to subtitle below it */
  color: var(--text-primary);
}

.brand-description {
  font-size: 1.125rem; /* Increased from 1rem (16px -> 18px) */
  line-height: 1.85;
  color: var(--text-secondary);
  word-break: keep-all;
  position: relative;
}

.brand-description::before {
  content: '';
  display: block;
  width: 400px; /* Length matches the visual width of '부드러운 실루엣 속에 감춰진 단단한 테일러링으로' at 18px font-size */
  height: 1px;
  background-color: var(--accent-taupe); /* Elegant warm taupe accent line */
  margin-bottom: 40px; /* Space between the line and the description body text */
}

.brand-image-col {
  width: 100%;
  max-width: 410px; /* Constrain photo width slightly more for tighter balance */
  margin: 0 auto; /* Center photo inside its grid cell */
}

.brand-image-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5; /* Adjusted to fit the portrait model image beautifully */
}

.brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.brand-image-wrapper:hover .brand-img {
  transform: scale(1.04);
}

/* ==========================================================================
   LOOKBOOK Section (Magazine Layout)
   ========================================================================== */
.lookbook-section {
  background-color: var(--bg-color);
  padding-left: 0;
  padding-right: 0;
}

.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5-columns layout on PC */
  gap: 15px;
  margin-top: 60px;
  padding: 0 40px;
}

.lookbook-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.lookbook-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.lookbook-item:hover .lookbook-img {
  transform: scale(1.05);
}

/* ==========================================================================
   STOCKLISTS Section
   ========================================================================== */
.stocklists-section {
  background-color: var(--bg-secondary);
}

.stocklists-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns on PC */
  gap: 20px;
  margin-top: 60px;
}

.stocklist-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  aspect-ratio: 3 / 1.7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  filter: grayscale(100%);
  opacity: 0.75;
  padding: 20px;
  user-select: none;
}

.stocklist-card span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-align: center;
}

.stocklist-card:hover {
  filter: grayscale(0%);
  opacity: 1;
  border-color: var(--accent-taupe);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   CONTACT Section
   ========================================================================== */
.contact-section {
  background-color: var(--bg-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
  align-items: start;
}

.info-block {
  margin-bottom: 40px;
}

.info-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent-taupe);
  margin-bottom: 12px;
  font-weight: 600;
}

.info-text {
  font-size: 1.05rem;
  color: var(--text-primary);
}

/* Subway Badges */
.transit-list {
  list-style: none;
}

.transit-list li {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  color: var(--white);
  margin-right: 12px;
  flex-shrink: 0;
}

.subway-line5 {
  background-color: #8A31AD;
}

.subway-line2 {
  background-color: #37B422;
}

.transit-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.transit-desc strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* Phone Layout */
.tel-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0; /* Increased vertical padding to give telephone number and button more breathing room */
  max-width: 380px;
}

.tel-number {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.btn-phone {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
  display: none; /* Hide on PC by default */
}

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

/* Map visual styling */
.map-container {
  width: 100%;
  margin-top: 40px;
}

.map-inner {
  width: 100%;
  position: relative;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background-color: var(--bg-secondary);
  line-height: 0;
}

.svg-map {
  width: 100%;
  height: auto;
  display: block;
}

.map-overlay-info {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
}

.map-badge {
  background-color: rgba(26, 26, 25, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 6px 12px;
  display: inline-block;
}



/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-secondary);
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 180px; /* Generous spacing before the bottom banner */
}

.footer-logo {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.company-details {
  line-height: 2.0;
  margin-bottom: 15px;
  word-break: keep-all;
}

.copyright {
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Floating Top Button
   ========================================================================== */
.scroll-to-top-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s, visibility 0.4s, background-color 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
}

.scroll-to-top-btn:hover .btn-icon {
  color: var(--white);
  transform: translateY(-2px);
}

.scroll-to-top-btn .btn-icon {
  font-size: 16px;
  color: var(--text-primary);
  transition: transform 0.3s ease;
}

/* ==========================================================================
   Lookbook Carousel / Slider
   ========================================================================== */
.lookbook-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 60px;
  padding: 0 60px; /* Space for arrows */
}

.lookbook-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.lookbook-carousel-track {
  display: flex;
  gap: 15px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.lookbook-carousel-track .lookbook-item {
  flex: 0 0 calc((100% - 60px) / 5); /* 5 items visible on PC */
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: var(--text-primary); /* Standout black background */
  border: 1px solid var(--text-primary);
  color: var(--white); /* White arrow */
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.carousel-nav-btn:hover {
  background-color: var(--accent-taupe); /* Hover effect */
  border-color: var(--accent-taupe);
  color: var(--white);
}

.carousel-nav-btn.disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

/* ==========================================================================
   Footer Bottom Flex & Admin Link
   ========================================================================== */
.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.admin-link-text {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.admin-link-text:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* ==========================================================================
   Admin Login Custom Modal
   ========================================================================== */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 25, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.login-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.login-modal-box {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  text-align: center;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.login-modal-overlay.active .login-modal-box {
  transform: translateY(0);
}

.login-modal-box h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.login-modal-box p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.login-input-group {
  margin-bottom: 24px;
}

.login-input-group input {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  font-size: 14px;
  width: 100%;
  text-align: center;
  letter-spacing: 0.1em;
  transition: var(--transition-fast);
}

.login-input-group input:focus {
  border-color: var(--accent-taupe);
}

.login-modal-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.login-error {
  font-size: 11px;
  color: #C07979;
  margin-top: 15px;
  display: none;
}

/* ==========================================================================
   Admin Panel Section Overlay
   ========================================================================== */
.admin-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: 1050; /* Above GNB header */
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s;
  overflow-y: auto;
  padding: 150px 0 100px 0;
}

.admin-section.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.admin-grid-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  margin-top: 50px;
  align-items: start;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--border-color);
  padding-right: 30px;
}

.admin-tab-btn {
  text-align: left;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  text-transform: uppercase;
}

.admin-tab-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.admin-tab-btn.active {
  background-color: var(--text-primary);
  color: var(--white);
}

.admin-logout-btn {
  margin-top: 40px;
  border: 1px solid #C07979;
  color: #C07979;
}

.admin-logout-btn:hover {
  background-color: #F8E2E2;
  color: #7A2F2F;
}

.admin-content-panel {
  width: 100%;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-panel-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.admin-panel-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Managers styles */
.admin-lookbook-list, .admin-stock-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  padding: 15px;
  background-color: var(--white);
  margin-bottom: 30px;
}

.admin-lookbook-item, .admin-stock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.admin-item-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-item-thumb {
  width: 40px;
  height: 50px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.admin-item-name {
  font-size: 13px;
  font-weight: 500;
}

.admin-item-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-order-controls {
  display: flex;
  gap: 12px;
}

.admin-order-btn {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.admin-order-btn:hover:not(.disabled) {
  color: var(--text-primary);
  text-decoration: underline;
}

.admin-order-btn.disabled {
  color: var(--text-muted);
  opacity: 0.4;
  cursor: not-allowed;
}

.admin-item-delete-btn {
  color: #C07979;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.admin-item-delete-btn:hover {
  text-decoration: underline;
}

/* Forms in Admin Panel */
.admin-form {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.admin-form h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  max-width: 480px;
}

.admin-form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.admin-form-group input {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  font-size: 13px;
  width: 100%;
}

/* Business Info Link in Footer */
.biz-info-link {
  color: var(--text-secondary);
  text-decoration: underline;
  margin-left: 8px;
  font-size: 11px;
  transition: var(--transition-fast);
}

.biz-info-link:hover {
  color: var(--text-primary);
}

/* KakaoTalk Button in CONTACT Section */
.kakao-container {
  margin-top: 15px;
  width: 100%;
}

.btn-kakao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #FEE500; /* Kakao official yellow */
  color: #191919;
  border: 1px solid #FEE500;
  font-size: 13px;
  font-weight: 500;
  padding: 14px 28px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
  max-width: 380px;
}

.btn-kakao:hover {
  background-color: #E0C700;
  border-color: #E0C700;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(254, 229, 0, 0.15);
}

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

/* External Link inside Admin Sidebar */
.admin-external-link {
  text-align: left;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  border: 1px dashed var(--border-color);
  margin-top: 10px;
  background-color: var(--white);
}

.admin-external-link:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-style: solid;
}

/* PC GNB Sub-dropdown Menu */
.dropdown-menu .sub-dropdown {
  position: relative;
}

.dropdown-menu .sub-dropdown-menu {
  position: absolute;
  left: 100%;
  top: 0;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  min-width: 180px;
  display: none;
  list-style: none;
  padding: 10px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  z-index: 1010;
}

.dropdown-menu .sub-dropdown:hover .sub-dropdown-menu {
  display: block;
}

.dropdown-menu .sub-dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  text-transform: uppercase;
}

.dropdown-menu .sub-dropdown-item:hover {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

/* Mobile GNB Sub-accordion Menu */
.mobile-sub-accordion {
  list-style: none;
}

.mobile-sub-menu .sub-accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.mobile-sub-menu .sub-accordion-toggle .sub-arrow {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--text-secondary);
  border-bottom: 1.5px solid var(--text-secondary);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-right: 4px;
}

.mobile-sub-accordion.active > .sub-accordion-toggle .sub-arrow {
  transform: rotate(-135deg);
}

.mobile-sub-sub-menu {
  display: none;
  list-style: none;
  padding-left: 20px;
  background-color: rgba(0, 0, 0, 0.02);
}

.mobile-sub-accordion.active > .mobile-sub-sub-menu {
  display: block;
}

.mobile-sub-sub-item {
  display: block;
  padding: 10px 24px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
}

/* Admin Menu tree styling */
.admin-menu-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  margin-bottom: 8px;
  text-align: left;
  cursor: grab; /* Visual drag indicator */
  user-select: none; /* Prevent text highlight during drag */
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.admin-menu-item-row:active {
  cursor: grabbing;
}

.admin-menu-item-row.dragging {
  opacity: 0.45;
  border: 1px dashed var(--accent-taupe);
  background-color: var(--bg-tertiary);
}

.admin-menu-item-row.level-middle {
  margin-left: 24px;
  border-left: 3px solid var(--accent-taupe);
}

.admin-menu-item-row.level-small {
  margin-left: 48px;
  border-left: 3px double var(--text-muted);
  background-color: var(--white);
}

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

.menu-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 3px 6px;
  background-color: var(--text-secondary);
  color: var(--white);
  border-radius: 3px;
  text-transform: uppercase;
}

.menu-badge.badge-large { background-color: var(--accent-taupe); }
.menu-badge.badge-middle { background-color: #6C757D; }
.menu-badge.badge-small { background-color: #ADB5BD; color: #191919; }

.menu-name-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  transition: var(--transition-fast);
}

.menu-name-text:hover {
  background-color: var(--border-color);
}

.menu-name-text::after {
  content: ' ✎';
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.3;
  transition: opacity 0.2s;
}

.menu-name-text:hover::after {
  opacity: 1;
  color: var(--accent-taupe);
}

.menu-link-text {
  font-size: 11px;
  color: var(--text-muted);
}

.menu-delete-btn {
  color: #C07979;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.menu-delete-btn:hover {
  text-decoration: underline;
}

.menu-move-btn {
  font-size: 10px;
  cursor: pointer;
  color: var(--text-muted);
  user-select: none;
  padding: 4px 6px;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  transition: var(--transition-fast);
}

.menu-move-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  border-color: var(--text-muted);
}
/* ==========================================================================
   Media Queries & Responsive rules
   ========================================================================== */

/* Tablet & Smaller Screens (PC -> Mobile threshold) */
@media (max-width: 1024px) {
  section {
    padding: 90px 0;
  }
  
  .section-title-serif {
    font-size: 2.3rem;
  }

  .brand-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .brand-content-col {
    padding-right: 0;
  }

  .lookbook-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on Tablet */
  }

  .lookbook-carousel-track .lookbook-item {
    flex: 0 0 calc((100% - 15px) / 2); /* 2 columns on Tablet */
  }

  .stocklists-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns on Tablet */
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  /* Layout adjustments */
  .container, .container-fluid {
    padding: 0 24px;
  }

  section {
    padding: 70px 0;
  }

  .section-title-serif {
    font-size: 1.85rem;
  }

  .section-subtitle {
    margin-bottom: 35px;
  }

  /* Hero Section Mobile Zoom Fix */
  .hero-section {
    background-size: 200% auto; /* Zoom in to match PC aspect crop scale */
    background-position: center 25%;
  }

  /* Header transitions */
  .site-header {
    height: var(--header-height-mobile);
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-desktop {
    display: none; /* Hide Desktop Nav */
  }

  .hamburger-btn {
    display: flex; /* Show Hamburger Icon */
  }

  /* Hamburger lines animation when active */
  body.menu-open .hamburger-btn .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.menu-open .hamburger-btn .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  body.menu-open .hamburger-btn .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Hero Section Mobile */
  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 11px;
    letter-spacing: 0.15em;
  }

  /* ABOUT Section Mobile */
  .intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
  }
  
  .btn {
    padding: 14px 28px;
    font-size: 12px;
  }

  #about-store-btn {
    width: 100%;
    text-align: center;
  }

  /* OUR BRAND Section Mobile (Vertical Stack) */
  .brand-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .text-center-mobile {
    text-align: center;
    width: 100%;
  }

  .brand-content-col {
    order: 1; /* Text first */
    text-align: center;
  }

  #our-brand .section-tag {
    font-size: 13px; /* Mobile override for section tag */
  }

  .brand-title {
    font-size: 2.35rem; /* Increased size on mobile */
    margin-bottom: 20px;
    margin-left: 0; /* Reset optical left alignment on mobile viewports */
  }

  .brand-subtitle-kr {
    font-size: 16px; /* Increased size on mobile */
    margin-bottom: 70px; /* Scaled down for mobile viewports (approx. 2cm) */
  }

  .brand-description {
    font-size: 1.125rem; /* Increased size on mobile */
  }

  .brand-description::before {
    margin-left: auto;
    margin-right: auto; /* Center the separator line on mobile viewports */
    margin-bottom: 30px;
    width: 260px; /* Constrained to fit mobile viewport widths safely */
    max-width: 100%;
  }

  .brand-image-col {
    order: 2; /* Image second */
    max-width: 340px; /* Nicely sized model card on mobile screens */
    margin: 0 auto; /* Centered */
  }

  .brand-image-wrapper {
    aspect-ratio: 4 / 5; /* Match portrait image aspect ratio on mobile */
  }

  /* LOOKBOOK Section Mobile (1-2 columns) */
  .lookbook-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for compact elegancy, or change to 1 if wanted */
    gap: 8px;
    padding: 0 12px;
  }

  /* STOCKLISTS Section Mobile (Grayscale Cards 3 columns) */
  .stocklists-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on mobile */
    gap: 10px;
  }

  .stocklist-card {
    padding: 10px;
    font-size: 11px;
  }

  /* CONTACT Section Mobile */
  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Uniform spacing between elements */
  }

  .contact-info-col {
    display: contents; /* Make container wrapper transparent so children are sibling grid/flex items */
  }

  .contact-grid .info-block {
    margin-bottom: 0; /* Reset margins to use parent gap spacing exclusively */
  }

  /* Reorder: ADDRESS -> PUBLIC TRANSPORTATION -> MAP -> CALL US -> KAKAO TALK */
  .contact-info-col .info-block:nth-child(1) { /* ADDRESS */
    order: 1;
  }

  .contact-info-col .info-block:nth-child(2) { /* PUBLIC TRANSPORTATION */
    order: 2;
  }

  .contact-map-col {
    order: 3; /* Map sits right below the public transportation instructions */
    margin-top: -15px; /* Pull map closer to PUBLIC TRANSPORTATION description */
  }

  .contact-info-col .info-block:nth-child(3) { /* CALL US */
    order: 4;
  }

  .contact-info-col .info-block:nth-child(4) { /* KAKAO TALK */
    order: 5;
  }

  .tel-item {
    max-width: 100%;
    padding: 18px 0; /* Extra spacious touch targets and breathing room on mobile viewports */
  }

  .tel-number {
    font-size: 1.05rem;
  }

  .btn-phone {
    display: inline-block; /* Show on Mobile */
  }



  .site-footer {
    margin-top: 110px;
  }

  .mobile-only {
    display: inline !important; /* Enable mobile-only line breaks */
  }

  .scroll-to-top-btn {
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
  }

  /* Admin mobile grid overrides */
  .admin-grid-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 20px;
    flex-direction: row;
    overflow-x: auto;
  }
  .admin-tab-btn, .admin-external-link {
    white-space: nowrap;
    padding: 10px 15px;
    margin-top: 0;
    display: inline-block;
  }
  .admin-logout-btn {
    margin-top: 0;
  }
  .lookbook-carousel-track .lookbook-item {
    flex: 0 0 calc((100% - 15px) / 2); /* 2 columns on Mobile */
  }
}

/* Extra small devices (Micro grid changes) */
@media (max-width: 480px) {
  .lookbook-grid {
    grid-template-columns: 1fr; /* 1 column on extremely small devices */
  }

  .stocklists-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on extremely small devices */
  }

  .lookbook-carousel-track .lookbook-item {
    flex: 0 0 100%; /* 1 column on micro-mobile */
  }
}

/* Season Selection Buttons in Lookbook */
.season-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 16px;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.season-btn:hover {
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-beige);
}

.season-btn.active {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-taupe);
}
