@import url('https://cdn.jsdelivr.net/gh/fonts-archive/AstaSans/AstaSans.css');

@font-face {
  font-family: "Free Sans";
  src: url("fonts/FreeSans.eot?") format("eot"),
       url("fonts/FreeSans.woff") format("woff"),
       url("fonts/FreeSans.ttf") format("truetype"),
       url("fonts/FreeSans.svg#FreeSans") format("svg");
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-color-dark: #0d0d0d;
  --bg-color-light: #ffffff;
  --text-color-dark: #ffffff;
  --text-color-light: #0d0d0d;
  
  --line-color-main: rgba(0, 0, 0, 0.12);
  --line-color-sub: rgba(0, 0, 0, 0.08);
  
  --font-display: 'Free Sans', 'Asta Sans', sans-serif;
  --font-body: 'Free Sans', 'Asta Sans', sans-serif;
  
  --transition-speed: 0.4s;
  --ease-premium: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body.dark-mode {
  background-color: var(--bg-color-dark);
  color: var(--text-color-dark);
}

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

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}
.dark-mode ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.dark-mode ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Background Line Design (Main via Pseudo-Elements, Sub via SVG)
   ========================================================================== */
.line-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.line-container svg {
  width: 100%;
  height: 100%;
}

/* Subpage SVG Lines */
.sub-lines line {
  stroke: var(--line-color-sub);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

/* Main Page Pseudo-element lines */
.line-label::before,
.line-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 150vw;
  border-top: 1px dashed var(--line-color-main);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 1.5s var(--ease-premium) 0.5s;
  pointer-events: none;
}

.line-label::before {
  right: 100%;
  margin-right: 25px; /* space between text and line */
}

.line-label::after {
  left: 100%;
  margin-left: 25px; /* space between text and line */
}

body.loaded .line-label::before,
body.loaded .line-label::after {
  opacity: 1;
}

/* Disable pseudo-elements on Subpage labels since it uses true SVG lines */
.subpage-wrapper .line-label::before,
.subpage-wrapper .line-label::after {
  content: none !important;
}

/* Hide text labels entirely on subpage, showing only SVG lines */
.subpage-wrapper .line-labels {
  display: none !important;
}

/* Line Labels */
.line-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8; /* Raise above center logo and other elements to ensure clickability */
  overflow: hidden;
}

.line-label {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: lowercase;
  color: rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  cursor: pointer; /* Explicit pointer cursor for clear clickability */
  opacity: 0;
  transition: opacity 1.5s var(--ease-premium) 1.2s, color 0.3s ease, letter-spacing 0.3s ease;
  white-space: nowrap;
}

body.loaded .line-label {
  opacity: 1;
}

.dark-mode .line-label {
  color: rgba(0, 0, 0, 0.55);
}

.line-label:hover {
  color: #000000;
  letter-spacing: 0.35em;
}

.dark-mode .line-label:hover {
  color: #000000;
}

/* SANSIL Visual Guide Labels (Unified for Main & Sub) */
.line-label.apparel {
  left: 20.1%;
  top: 12%;
  transform: translate(-50%, -50%) rotate(-60.7deg);
}

.line-label.merchandise {
  left: 50%;
  top: 12%;
  transform: translate(-50%, -50%) rotate(90deg);
}

.dark-mode .line-label.merchandise {
  color: #ffffff;
}

.dark-mode .line-label.merchandise:hover {
  color: #ffffff;
}

.line-label.archive {
  left: 79.9%;
  top: 12%;
  transform: translate(-50%, -50%) rotate(60.7deg);
}


/* ==========================================================================
   Main Landing Page (index.html)
   ========================================================================== */
.landing-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-image: url('img/sansil_ss26.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Fade-in Overlay to soften the background image and ensure text readability */
.landing-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  z-index: 0;
}

/* Center Logo */
.center-logo-container {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1.5s var(--ease-premium) 0.8s, transform 1.5s var(--ease-premium) 0.8s;
}

body.loaded .center-logo-container {
  opacity: 1;
  transform: scale(1);
}

.center-logo-container img {
  width: 180px;
  height: auto;
  transition: transform var(--transition-speed) var(--ease-premium), filter var(--transition-speed) ease;
}


/* Header & Controls */
.top-controls {
  position: absolute;
  top: 40px;
  left: 50px;
  right: 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 10;
  pointer-events: none; /* Let pointer events pass through empty areas */
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1.2s var(--ease-premium) 1s, transform 1.2s var(--ease-premium) 1s;
}

body.loaded .top-controls {
  opacity: 1;
  transform: translateY(0);
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  pointer-events: auto; /* Enable pointer events for the search button */
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.search-btn svg {
  width: 100%;
  height: 100%;
  stroke: #000000;
  fill: none;
  stroke-width: 1.5;
}

/* Right Nav Stack on Sub Pages */
.sub-right-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  pointer-events: auto;
}

.sub-right-nav a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text-color-light);
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.sub-right-nav a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Right Nav Stack on Main Page */
.main-right-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  text-align: right;
  pointer-events: auto; /* Enable pointer events for navigation links */
}

.main-right-nav a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: #000000;
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.main-right-nav a:hover {
  opacity: 1;
  transform: translateX(-5px);
}

.nav-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px; /* Space between bag icon and ALL text */
  margin-bottom: 10px;
}

.main-right-nav .all-link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 1;
}


/* ==========================================================================
   Product Subpage (product.html)
   ========================================================================== */
.subpage-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-color-light);
  color: var(--text-color-light);
  display: flex;
  flex-direction: column;
  padding-bottom: 60px;
}

.subpage-wrapper .line-container,
.subpage-wrapper .line-labels {
  height: 100%;
  min-height: 100vh;
  position: fixed; /* Keep background lines and labels stationary while scrolling */
}

.sub-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px;
  z-index: 10;
}

.sub-header .search-btn svg {
  stroke: var(--text-color-light);
}

.sub-header-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
}

.sub-header-logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.sub-header-logo img:hover {
  transform: scale(1.05);
}

.sub-header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.bag-text-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: var(--text-color-light);
}

.bag-text-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.bag-text-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bag-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.bag-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hamburger Menu Icon */
.menu-toggle-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 24px; /* Symmetrical height matching bag button */
  padding: 5px 0; /* Keeps lines at exactly 14px high */
  box-sizing: border-box;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.menu-toggle-btn:hover {
  transform: scaleY(1.1);
}

.menu-toggle-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-color-light);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Main Content Area & Left Sidebar Layout */
.subpage-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 60px 50px;
  display: flex;
  gap: 60px;
  flex: 1;
}

/* Sidebar Category Navigation Styles */
.product-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  height: fit-content;
  z-index: 6;
}

.sidebar-category-group {
  margin-bottom: 35px;
}

.sidebar-gender-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 15px;
  color: var(--text-color-light);
  border-bottom: 1.5px solid var(--text-color-light);
  padding-bottom: 6px;
  text-transform: uppercase;
}

.sidebar-gender-title a {
  color: inherit;
  text-decoration: none;
  display: block;
  transition: opacity 0.2s ease;
}

.sidebar-gender-title a:hover {
  opacity: 0.7;
}

.sidebar-main-categories {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-cat-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-color-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.main-cat-title.accordion-trigger::after {
  content: '+';
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease;
}

.sidebar-accordion-item.active .main-cat-title.accordion-trigger::after {
  content: '—';
}

.sidebar-sub-categories {
  list-style: none;
  padding: 0 0 0 10px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  
  /* Accordion default hidden state */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease-premium), opacity 0.3s ease, padding 0.4s;
}

.sidebar-accordion-item.active .sidebar-sub-categories {
  max-height: 180px;
  opacity: 1;
  padding-top: 5px;
  padding-bottom: 10px;
}

.sidebar-sub-categories li a {
  font-size: 0.65rem;
  color: rgba(0, 0, 0, 0.45);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: block;
}

.sidebar-sub-categories li a:hover,
.sidebar-sub-categories li a.active {
  color: var(--text-color-light);
  padding-left: 2px;
}

/* Right Content Area */
.product-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 4-Column Product Grid (Reduced from 5 due to sidebar space) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 25px;
  margin-bottom: 60px;
}

.no-products-msg {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.05em;
  text-align: center;
  margin-top: 50px;
  width: 100%;
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: transparent;
  transition: transform var(--transition-speed) var(--ease-premium);
}

.product-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.product-image-box img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.6s var(--ease-premium);
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.02));
  mix-blend-mode: multiply;
}

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

.product-info {
  width: 100%;
}

.product-title {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-color-light);
  margin-bottom: 8px;
  line-height: 1.4;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-title {
  opacity: 1;
}

.product-price {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.6);
}

/* More Button (Hexagonal / pointed-ends capsule outline) */
.more-btn-container {
  display: flex;
  justify-content: center;
  margin: 40px 0 60px 0;
}

.more-btn {
  position: relative;
  padding: 12px 35px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--text-color-light);
  background-color: transparent;
  overflow: hidden;
  clip-path: polygon(10px 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0% 50%);
  border: 1px solid rgba(0,0,0,0.15);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Custom border design to match clip-path */
.more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text-color-light);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-premium);
}

.more-btn:hover {
  color: var(--bg-color-light);
  border-color: var(--text-color-light);
}

.more-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Footer Section (WOOYOUNGMI Inspired Premium Layout) */
.sansil-footer {
  width: 100%;
  background-color: var(--bg-color-light);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 80px 80px 40px 80px;
  font-family: var(--font-body);
  color: var(--text-color-light);
  z-index: 5;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* 4 Columns grid section */
.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 25px;
  text-transform: uppercase;
  color: var(--text-color-light);
}

.newsletter-desc {
  font-size: 0.68rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
  word-break: keep-all;
}

.newsletter-form {
  max-width: 320px;
}

.input-underline-group {
  display: flex;
  border-bottom: 1.5px solid var(--text-color-light);
  padding-bottom: 6px;
  margin-bottom: 20px;
  position: relative;
}

.newsletter-input {
  border: none;
  background: none;
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-color-light);
  padding: 4px 0;
  font-family: inherit;
  letter-spacing: 0.03em;
}

.newsletter-input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.newsletter-input:focus {
  outline: none;
}

.newsletter-submit-btn {
  border: none;
  background: none;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-color-light);
  padding: 0 4px 0 10px;
  white-space: nowrap;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.newsletter-submit-btn:hover {
  opacity: 0.7;
}

.newsletter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-container {
  display: block;
  position: relative;
  padding-left: 22px;
  cursor: pointer;
  font-size: 0.65rem;
  color: rgba(0, 0, 0, 0.55);
  user-select: none;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 1px;
  left: 0;
  height: 13px;
  width: 13px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background-color: var(--bg-color-light);
  transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--text-color-light);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--text-color-light);
  border-color: var(--text-color-light);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 4px;
  top: 1.5px;
  width: 3.5px;
  height: 6.5px;
  border: solid var(--bg-color-light);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links li a {
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.55);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.footer-links li a:hover {
  color: var(--text-color-light);
}

/* Copyright Row */
.footer-copyright-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 25px;
  margin-bottom: 25px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-color-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Business Info */
.footer-business-info {
  font-size: 0.6rem;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.45);
  letter-spacing: 0.04em;
}

.footer-business-info p {
  margin: 5px 0;
}


/* ==========================================================================
   Interactive Overlays & Panels
   ========================================================================== */

/* Fullscreen Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-premium);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.search-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.close-search-btn {
  position: absolute;
  top: 40px;
  right: 50px;
  width: 30px;
  height: 30px;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

.close-search-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.close-search-btn span {
  display: block;
  position: absolute;
  top: 14px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-color-light);
}

.close-search-btn span:first-child {
  transform: rotate(45deg);
}

.close-search-btn span:last-child {
  transform: rotate(-45deg);
}

.search-form {
  width: 80%;
  max-width: 800px;
  text-align: center;
}

.search-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  padding: 15px 0;
  text-align: center;
  color: var(--text-color-light);
}

.search-input:focus {
  outline: none;
  border-bottom-color: var(--text-color-light);
}

.search-hint {
  margin-top: 15px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
}

/* Slide-in Bag (Drawer) */
.bag-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  height: 100vh;
  background-color: var(--bg-color-light);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.03);
  z-index: 90;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-premium);
  border-left: 1px solid rgba(0, 0, 0, 0.03);
}

.bag-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.close-drawer-btn {
  width: 20px;
  height: 20px;
  position: relative;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.close-drawer-btn:hover {
  opacity: 1;
}

.close-drawer-btn span {
  display: block;
  position: absolute;
  top: 9px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-color-light);
}

.close-drawer-btn span:first-child {
  transform: rotate(45deg);
}

.close-drawer-btn span:last-child {
  transform: rotate(-45deg);
}

.drawer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow-y: auto;
}

/* Empty state - center content */
.drawer-content:has(.empty-bag-msg) {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.empty-bag-msg {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.4);
  text-transform: lowercase;
  margin-bottom: 20px;
}

.shop-now-btn {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--text-color-light);
  padding-bottom: 3px;
  transition: letter-spacing 0.3s ease;
}

.shop-now-btn:hover {
  letter-spacing: 0.2em;
}

/* Side Drawer Overlay Backdrop */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Slide-in Navigation Menu (Mobile Menu Drawer) */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background-color: var(--bg-color-light);
  z-index: 95;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-premium);
  border-left: 1px solid rgba(0,0,0,0.05);
}

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

.mobile-menu-list {
  list-style: none;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.mobile-menu-item a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: letter-spacing 0.3s;
}

.mobile-menu-item a:hover {
  letter-spacing: 0.2em;
}

.mobile-sub-menu {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 30px;
}

.mobile-sub-menu a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  opacity: 0.6;
}

.mobile-sub-menu a:hover {
  opacity: 1;
}

/* Animations */
@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Wide screens (Large Desktops) */
@media (min-width: 1600px) {
  .product-grid {
    gap: 50px 30px;
  }
}

/* Notebooks / Small Desktops */
@media (max-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

}

/* Tablets (Portrait & Landscape) */
@media (max-width: 1024px) {
  .subpage-content {
    flex-direction: column;
    gap: 40px;
    padding: 40px 30px;
  }
  
  .product-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    overflow-x: auto;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    -webkit-overflow-scrolling: touch;
  }
  
  .product-sidebar::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
  }
  
  .sidebar-category-group {
    margin-bottom: 0;
    flex-shrink: 0;
    min-width: 150px;
  }

  .sidebar-sub-categories li a {
    padding: 6px 0;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
  }
  
  .sub-header {
    padding: 25px 30px;
  }
  
  .center-logo-container img {
    width: 150px;
  }
  
  .top-controls {
    left: 30px;
    right: 30px;
    top: 30px;
  }
  
  .line-label.apparel {
    left: 14.5%;
    top: 16%;
  }
  .line-label.archive {
    left: 85.5%;
    top: 16%;
  }
}

/* Mobile Screens */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 15px;
  }
  
  .landing-wrapper {
    background-position: 60% center; /* Adjust banner focus point for portrait mobile screen */
  }
  
  /* Make intersecting lines less prominent on mobile to avoid clutter */
  .line-container {
    opacity: 0.4;
  }
  body.loaded .line-label::before,
  body.loaded .line-label::after {
    opacity: 0.4;
  }
  
  .line-label {
    font-size: 0.55rem;
  }
  
  .line-label.apparel {
    left: 13.4%;
    top: 18%;
  }
  
  .line-label.archive {
    left: 86.6%;
    top: 18%;
  }
  
  .line-label.merchandise {
    top: 15%;
  }
  
  .bag-drawer {
    width: 100%; /* Take full screen on mobile */
    padding: 30px;
  }
  
  .sansil-footer {
    padding: 50px 30px 30px 30px;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-bottom: 40px;
  }
  .newsletter-col {
    grid-column: span 2;
    margin-bottom: 15px;
  }
}

/* Very Small Mobile Screens (WooYoungMi Footer Override) */
@media (max-width: 480px) {
  .sansil-footer {
    padding: 40px 20px 20px 20px;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .newsletter-col {
    grid-column: span 1;
  }
  .footer-copyright-row {
    flex-direction: column;
    gap: 12px;
  }
}

/* Very Small Mobile Screens */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 35px 0;
  }
  
  .sub-header {
    padding: 20px 20px;
  }
  
  .subpage-content {
    padding: 30px 20px;
  }
  
  .sub-header-logo img {
    height: 35px;
  }
  
  .top-controls {
    left: 20px;
    right: 20px;
    top: 20px;
  }
  
  .center-logo-container img {
    width: 120px;
  }
  
  /* Hide diagonal background lines and labels entirely on narrow screens to prevent text overlap */
  .line-container, .line-labels {
    display: none;
  }
}


/* ==========================================================================
   Dynamic Sliced Page Transition Overlay
   ========================================================================== */
.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: none;
  pointer-events: none;
  overflow: hidden;
}

.transition-slice {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('img/sansil_ss26.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Sliced diagonally along: x1=-19.2% y1=100% to x2=37% y2=0% (apparel line guide) */
.transition-slice.slice-left {
  clip-path: polygon(0 0, 37% 0, -19.2% 100%, 0 100%);
  will-change: transform;
}

.transition-slice.slice-right {
  clip-path: polygon(37% 0, 100% 0, 100% 100%, -19.2% 100%);
  will-change: transform;
}

/* ==========================================================================
   SANSIL Cinematic Intro Screen
   ========================================================================== */
.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #050505;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1.2s cubic-bezier(0.85, 0, 0.15, 1), transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}

.intro-screen.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.intro-logo-box {
  opacity: 0;
  transform: scale(0.92);
  animation: introLogoReveal 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.2s;
}

.intro-logo {
  width: 250px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
}

.intro-loader {
  width: 180px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.intro-loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  transform: translateX(-100%);
  animation: introLoadingProgress 2.2s cubic-bezier(0.85, 0, 0.15, 1) forwards 0.2s;
}

@keyframes introLogoReveal {
  0% {
    opacity: 0;
    filter: blur(15px) brightness(0.2);
    transform: scale(0.92);
  }
  35% {
    opacity: 0.8;
    filter: blur(4px) brightness(0.8);
  }
  100% {
    opacity: 1;
    filter: blur(0px) brightness(1);
    transform: scale(1);
  }
}

@keyframes introLoadingProgress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Skip intro screen overrides for snappy local page navigation */
body.no-intro .line-label,
body.no-intro .line-label::before,
body.no-intro .line-label::after,
body.no-intro .center-logo-container,
body.no-intro .top-controls {
  transition: none !important;
  opacity: 1 !important;
}

body.no-intro .center-logo-container {
  transform: scale(1) !important;
}

body.no-intro .top-controls {
  transform: translateY(0) !important;
}

/* ==========================================================================
   Product Detail Page (detail.html)
   ========================================================================== */
.detail-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 50px;
}

.detail-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

.detail-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  overflow: hidden;
}

.detail-image-box img {
  max-width: 90%;
  max-height: 550px;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.03));
  mix-blend-mode: multiply;
}

.detail-info-box {
  display: flex;
  flex-direction: column;
}

.detail-breadcrumb {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 25px;
}

.detail-breadcrumb a {
  transition: color 0.3s;
}

.detail-breadcrumb a:hover {
  color: #000000;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-color-light);
  line-height: 1.3;
  margin-bottom: 15px;
}

.detail-price {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.85);
  margin-bottom: 35px;
}

.detail-description {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 40px;
}

/* Size Selector Group */
.detail-selector-group {
  margin-bottom: 35px;
}

.selector-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 12px;
}

.size-buttons {
  display: flex;
  gap: 12px;
}

.size-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background-color: transparent;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-color-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.size-btn:hover {
  border-color: #000000;
}

.size-btn.active {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* Add to Bag Button */
.detail-action-container {
  margin-bottom: 50px;
}

.add-to-bag-btn {
  width: 100%;
  padding: 16px;
  background-color: #000000;
  color: #ffffff;
  border: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.add-to-bag-btn:hover {
  background-color: #1a1a1a;
  transform: translateY(-1px);
}

.add-to-bag-btn:active {
  transform: translateY(1px);
}

/* Accordions */
.detail-accordions {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.accordion-header {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
  text-align: left;
}

.accordion-icon {
  font-size: 1rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-premium), padding-bottom 0.4s var(--ease-premium);
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.55);
}

.accordion-item.active .accordion-content {
  max-height: 200px;
  padding-bottom: 20px;
}

/* ==========================================================================
   Shopping Bag Line Items (Dynamic Cart)
   ========================================================================== */
.cart-items-list {
  width: 100%;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  margin-top: 20px;
  padding-right: 5px;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  align-items: center;
}

.cart-item-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  background-color: transparent;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-color-light);
  line-height: 1.3;
}

.cart-item-meta {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.05em;
}

.cart-item-price {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
}

.cart-item-remove {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: underline;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.3s;
  background: none;
  border: none;
  padding: 0;
  margin-top: 2px;
}

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

/* Total Section */
.cart-total-section {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(0, 0, 0, 0.4);
}

.cart-total-price {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-color-light);
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background-color: #000000;
  color: #ffffff;
  border: none;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.checkout-btn:hover {
  background-color: #1a1a1a;
}

/* Responsive details layout */
@media (max-width: 900px) {
  .detail-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .detail-image-box {
    max-height: 400px;
  }
  .detail-image-box img {
    max-height: 350px;
  }
}

/* ==========================================================================
   Brand Story Subpage Styles (Wooyoungmi High-End Layout)
   ========================================================================== */
.story-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px 160px 40px;
  position: relative;
  z-index: 5;
}

/* Center Block (Wooyoungmi Style 1: Headline + Tight Paragraph + Wide Banner) */
.story-center-block {
  text-align: center;
  margin-bottom: 60px;
  padding-top: 30px;
}

.story-center-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-color-light);
  margin-bottom: 25px;
  line-height: 1.3;
}

.story-center-desc {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.75);
  max-width: 620px;
  margin: 0 auto;
  word-break: keep-all;
  text-align: center;
}

.story-wide-img-box {
  width: 100%;
  max-height: 580px;
  overflow: hidden;
  margin-bottom: 140px;
  background-color: #f7f7f7;
}

.story-wide-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 2s var(--ease-premium);
}

.story-wide-img-box:hover img {
  transform: scale(1.02);
}

/* 3-Column Grid (Wooyoungmi Style 2: 3 Vertical Cards with Metadata Align) */
.story-three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 35px;
  margin-bottom: 150px;
}

.story-column {
  display: flex;
  flex-direction: column;
}

.column-img-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #f7f7f7;
  margin-bottom: 20px;
}

.column-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 1.5s var(--ease-premium);
}

.column-img-box:hover img {
  transform: scale(1.04);
}

.column-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.column-meta-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meta-title {
  font-weight: 600;
  color: var(--text-color-light);
}

.meta-date {
  color: rgba(0, 0, 0, 0.4);
  font-family: var(--font-display);
}

.column-meta-right {
  color: rgba(0, 0, 0, 0.4);
  text-transform: lowercase;
  font-family: var(--font-display);
}

.column-desc {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.65);
  word-break: keep-all;
  text-align: justify;
}

/* Scroll reveal states */
.story-center-block, .story-wide-img-box, .story-three-columns {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s var(--ease-premium), transform 1.2s var(--ease-premium);
}

.story-center-block.revealed, .story-wide-img-box.revealed, .story-three-columns.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustment */
@media (max-width: 991px) {
  .story-three-columns {
    grid-template-columns: 1fr;
    gap: 70px;
    margin-bottom: 100px;
  }
  .column-img-box {
    aspect-ratio: 16 / 11;
  }
  .story-wide-img-box {
    max-height: 400px;
    margin-bottom: 90px;
  }
}

@media (max-width: 768px) {
  .story-wrapper {
    padding: 60px 20px 100px 20px;
  }
  .story-center-title {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }
  .story-center-desc {
    font-size: 0.68rem;
    line-height: 1.75;
  }
  .story-wide-img-box {
    max-height: 300px;
    margin-bottom: 80px;
  }
  .column-desc {
    font-size: 0.68rem;
    line-height: 1.7;
  }
}

/* ==========================================================================
   Login & Wishlist Overlay & Drawer Styles
   ========================================================================== */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-premium);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.login-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.close-login-btn {
  position: absolute;
  top: 40px;
  right: 50px;
  width: 30px;
  height: 30px;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

.close-login-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.close-login-btn span {
  display: block;
  position: absolute;
  top: 14px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-color-light);
}

.close-login-btn span:first-child {
  transform: rotate(45deg);
}

.close-login-btn span:last-child {
  transform: rotate(-45deg);
}

.login-form-container {
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.login-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 40px;
  color: var(--text-color-light);
  text-transform: uppercase;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.login-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  padding: 12px 0;
  text-align: center;
  color: var(--text-color-light);
  transition: border-color 0.3s;
  text-transform: lowercase;
}

.login-input:focus {
  outline: none;
  border-bottom-color: var(--text-color-light);
}

.login-submit-btn {
  width: 100%;
  padding: 15px;
  background-color: #000000;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
  text-transform: lowercase;
}

.login-submit-btn:hover {
  background-color: #1a1a1a;
}

.login-extra {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 0.65rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.4);
  text-transform: lowercase;
}

.login-extra a {
  transition: color 0.3s;
}

.login-extra a:hover {
  color: #000000;
}

/* Wishlist Drawer */
.wishlist-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  height: 100vh;
  background-color: var(--bg-color-light);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.03);
  z-index: 90;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-premium);
  border-left: 1px solid rgba(0, 0, 0, 0.03);
}

.wishlist-drawer.active {
  transform: translateX(0);
}

/* Detail Page Add to Wishlist Button */
.detail-action-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: stretch;
}

.add-to-wishlist-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  border: 1px solid rgba(0,0,0,0.15);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
  color: var(--text-color-light);
}

.add-to-wishlist-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.3s, fill 0.3s;
}

.add-to-wishlist-btn:hover {
  border-color: #000000;
}

.add-to-wishlist-btn:hover svg {
  transform: scale(1.1);
}

.add-to-wishlist-btn.active svg {
  fill: #000000;
  stroke: #000000;
}

/* Wishlist Item list */
.wishlist-items-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  overflow-y: auto;
  flex: 1;
  margin-bottom: 20px;
}

.wishlist-item {
  display: flex;
  gap: 20px;
  align-items: center;
}

.wishlist-item-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background-color: transparent;
  padding: 5px;
  mix-blend-mode: multiply;
}

.wishlist-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wishlist-item-title {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wishlist-item-price {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: rgba(0,0,0,0.6);
}

.wishlist-item-actions {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}

.wishlist-item-add-bag, .wishlist-item-remove {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.wishlist-item-add-bag {
  color: #000000;
  font-weight: 600;
}

.wishlist-item-remove {
  color: rgba(0,0,0,0.4);
}

.wishlist-item-remove:hover {
  color: #ff3b30;
}

.empty-wishlist-msg {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.4);
  text-align: center;
  margin-top: 100px;
}

@media (max-width: 768px) {
  .wishlist-drawer {
    width: 100%;
    padding: 30px;
  }
}

/* ==========================================================================
   Brand Story Detail Page Styles
   ========================================================================== */
.story-detail-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 40px 140px 40px;
  position: relative;
  z-index: 5;
}

.story-detail-back {
  margin-bottom: 30px;
}

.story-back-link {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s, transform 0.3s;
}

.story-back-link svg {
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  transition: transform 0.3s;
}

.story-back-link:hover {
  color: #000000;
}

.story-back-link:hover svg {
  transform: translateX(-3px);
}

.story-detail-image-box {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  background-color: #f7f7f7;
  margin-bottom: 50px;
}

.story-detail-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 2s var(--ease-premium);
}

.story-detail-image-box:hover img {
  transform: scale(1.02);
}

.story-detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
  padding-bottom: 25px;
  margin-bottom: 50px;
}

.story-detail-meta .meta-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-color-light);
  margin-bottom: 10px;
}

.story-detail-meta .meta-date {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.4);
}

.story-detail-meta #storyDetailTag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.4);
  text-transform: lowercase;
}

.story-detail-body {
  max-width: 680px;
  margin: 0 auto;
}

.story-detail-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: #000000;
  margin-bottom: 35px;
  word-break: keep-all;
}

.story-detail-paragraph {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 2.1;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.75);
  margin-bottom: 25px;
  word-break: keep-all;
  text-align: justify;
}

@media (max-width: 768px) {
  .story-detail-wrapper {
    padding: 40px 20px 100px 20px;
  }
  .story-detail-image-box {
    max-height: 300px;
    margin-bottom: 30px;
  }
  .story-detail-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 35px;
  }
  .story-detail-meta .meta-title {
    font-size: 1.15rem;
  }
  .story-detail-subtitle {
    font-size: 0.85rem;
    margin-bottom: 25px;
  }
  .story-detail-paragraph {
    font-size: 0.8rem;
    line-height: 1.9;
  }
}

/* Info Overlay for Footer Links */
.info-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 250; /* Above all headers and drawers */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-premium);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.info-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.close-info-btn {
  position: absolute;
  top: 40px;
  right: 50px;
  width: 30px;
  height: 30px;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 260;
}

.close-info-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.close-info-btn span {
  display: block;
  position: absolute;
  top: 14px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: #000;
  transition: background-color 0.3s;
}

.close-info-btn span:first-child {
  transform: rotate(45deg);
}

.close-info-btn span:last-child {
  transform: rotate(-45deg);
}

.info-content-container {
  width: 100%;
  max-width: 600px;
  padding: 0 40px;
  text-align: left;
}

.info-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 25px;
  text-transform: uppercase;
  border-bottom: 1.5px solid #000;
  padding-bottom: 15px;
  color: #000;
}

.info-body-content {
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.7);
  white-space: pre-line;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 15px;
}

/* Custom scrollbar for info content */
.info-body-content::-webkit-scrollbar {
  width: 3px;
}
.info-body-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}
.info-body-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .close-info-btn {
    top: 30px;
    right: 30px;
  }
  .info-content-container {
    padding: 0 25px;
  }
  .info-title {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .info-body-content {
    font-size: 0.7rem;
    line-height: 1.7;
    max-height: 60vh;
  }
}

/* ==========================================================================
   Archive Subpage Styles (SANSIL Premium Minimalist)
   ========================================================================== */
.archive-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 10px 100px 10px;
  position: relative;
  z-index: 5;
}

.archive-header-block {
  text-align: center;
  margin-bottom: 50px;
}

.archive-main-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-color-light);
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Horizontal Nav Tabs System */
.archive-nav-container {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--line-color-sub);
  padding-bottom: 15px;
}

.archive-nav-tabs {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.archive-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.45);
  cursor: pointer;
  padding: 5px 0;
  position: relative;
  transition: color var(--transition-speed) var(--ease-premium);
}

.archive-tab-btn:hover {
  color: var(--text-color-light);
}

.archive-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--text-color-light);
  transition: width 0.4s var(--ease-premium);
}

.archive-tab-btn.active {
  color: var(--text-color-light);
  font-weight: 700;
}

.archive-tab-btn.active::after {
  width: 100%;
}

/* Archive Cards Grid (3 Columns) */
.archive-grid-container {
  width: 100%;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 30px;
  width: 100%;
}

.archive-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  background: transparent;
  transition: transform var(--transition-speed) var(--ease-premium);
  opacity: 0;
  transform: translateY(30px);
}

.archive-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
}

.archive-card:hover {
  transform: translateY(-6px);
}

.archive-card-image-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  border: 1px solid rgba(13, 13, 13, 0.05);
}

.archive-card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-premium);
}

.archive-card:hover .archive-card-image-box img {
  transform: scale(1.05);
}

.archive-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: rgba(13, 13, 13, 0.5);
  border-bottom: 1px dashed rgba(13, 13, 13, 0.08);
  padding-bottom: 8px;
}

.archive-card-category {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-color-light);
  letter-spacing: 0.1em;
}

.archive-card-date {
  font-size: 0.6rem;
}

.archive-card-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: var(--text-color-light);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-card-desc {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(13, 13, 13, 0.55);
  line-height: 1.6;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Premium Glassmorphism Detail Modal Overlay */
.archive-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-premium);
}

.archive-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.close-archive-modal {
  position: absolute;
  top: 40px;
  right: 50px;
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1010;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.close-archive-modal:hover {
  transform: rotate(90deg);
}

.close-archive-modal span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-color-light);
  position: absolute;
}

.close-archive-modal span:first-child {
  transform: rotate(45deg);
}

.close-archive-modal span:last-child {
  transform: rotate(-45deg);
}

.archive-modal-content {
  width: 90%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  background: transparent;
  padding: 20px;
  align-items: center;
}

.archive-modal-image-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f5f5f5;
  border: 1px solid rgba(13, 13, 13, 0.08);
}

.archive-modal-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-modal-text-box {
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.archive-modal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line-color-main);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.archive-modal-category {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-color-light);
  letter-spacing: 0.15em;
}

.archive-modal-date {
  color: rgba(13, 13, 13, 0.45);
}

.archive-modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-color-light);
  margin-bottom: 25px;
  letter-spacing: 0.01em;
}

.archive-modal-body {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(13, 13, 13, 0.65);
  line-height: 1.8;
  letter-spacing: 0.03em;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 15px;
}

.archive-modal-paragraph {
  margin-bottom: 15px;
}

.archive-modal-paragraph:last-child {
  margin-bottom: 0;
}

/* Custom Scrollbar for Modal Text Body */
.archive-modal-body::-webkit-scrollbar {
  width: 4px;
}

.archive-modal-body::-webkit-scrollbar-track {
  background: rgba(13, 13, 13, 0.03);
}

.archive-modal-body::-webkit-scrollbar-thumb {
  background: rgba(13, 13, 13, 0.15);
  border-radius: 2px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
  .archive-modal-content {
    grid-template-columns: 1fr;
    gap: 30px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 10px;
  }
  .archive-modal-image-box {
    aspect-ratio: 16 / 10;
  }
  .archive-modal-text-box {
    max-height: none;
  }
  .archive-modal-body {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .archive-wrapper {
    padding: 30px 10px 80px 10px;
  }
  .archive-main-title {
    font-size: 0.85rem;
  }
  .archive-nav-tabs {
    gap: 20px 15px;
  }
  .archive-tab-btn {
    font-size: 0.65rem;
  }
  .archive-tab-btn::after {
    bottom: -16px;
  }
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 40px 0;
  }
  .close-archive-modal {
    top: 25px;
    right: 25px;
    width: 24px;
    height: 24px;
  }
  .archive-modal-content {
    width: 95%;
  }
  .archive-modal-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
}
