/* =========================================
   Fashion Vision - Global Styles
   Core Principles: Minimalist, High-end, Visual-first
   Copyright (c) 2025 HAISNAP
   ========================================= */

/* Font Import: Noto Sans SC (Light & Regular) for modern clean look */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400&display=swap');

:root {
  /* --- Color Palette --- */
  --color-primary: #2C2C2C;       /* Matte Black for emphasis */
  --color-bg: #FFFFFF;            /* Pure White */
  --color-bg-secondary: #F5F5F7;  /* High-end Neutral Gray */
  --color-beige: #F9F1E7;         /* Soft Beige */
  --color-clay: #E6D2C3;          /* Light Clay */
  --color-text-body: #333333;     /* Dark Gray for readability */
  --color-text-sub: #666666;      /* Muted Gray for descriptions */
  --color-footer: #888888;        /* Footer Text */
  
  /* --- Typography --- */
  --font-main: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;

  /* --- Spacing & Layout --- */
  --spacing-section: 120px;       /* Generous vertical spacing */
  --spacing-grid: 60px;           /* Grid gap per requirements */
  --container-width: 1440px;
  --header-height: 80px;
  --border-radius-img: 8px;

  /* --- Transitions --- */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fade: opacity 0.3s ease;
}

/* =========================================
   Reset & Base Styles (Overriding Pico.css where needed)
   ========================================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-weight: var(--font-weight-light);
  color: var(--color-text-body);
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
}

/* Reset Links */
a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-text-sub);
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-light);
  color: var(--color-primary);
  margin-top: 0;
  letter-spacing: 0.05em;
}

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

/* =========================================
   Layout Components
   ========================================= */

/* Main Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
  box-sizing: border-box;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav-brand {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  z-index: 1002;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 1002;
}

/* =========================================
   Hero Section (Index)
   ========================================= */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* 20% overlay */
  z-index: 10;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  text-align: center;
  color: #fff;
  width: 100%;
  padding: 0 20px;
}

.hero-title {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* =========================================
   Content Sections
   ========================================= */
.section {
  padding: var(--spacing-section) 0;
}

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

.section-title {
  font-size: 32px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--color-text-sub);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Horizontal Scroll (New Series) */
.scroll-gallery {
  display: flex;
  overflow-x: auto;
  gap: 40px;
  padding: 10px 40px 40px 40px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.scroll-gallery::-webkit-scrollbar {
  display: none;
}

.scroll-item {
  flex: 0 0 320px; /* Half of 640px for better desktop view, or use max-width */
  position: relative;
}

.scroll-item img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: var(--border-radius-img);
  transition: var(--transition-smooth);
}

.scroll-item:hover img {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* =========================================
   Grid System (Collections & Items)
   ========================================= */
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-grid);
}

.grid-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  group: 'card';
}

.card-image-wrapper {
  width: 100%;
  aspect-ratio: 3/4; /* Classic fashion portrait ratio */
  overflow: hidden;
  border-radius: var(--border-radius-img);
  background-color: var(--color-bg-secondary);
  position: relative;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-image-wrapper:hover img {
  transform: scale(1.03);
}

/* Hover Shadow Effect Overlay */
.card-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 80%, rgba(0,0,0,0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card-image-wrapper:hover::after {
  opacity: 1;
}

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

.card-meta {
  font-size: 12px;
  color: var(--color-text-sub);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.card-desc {
  font-size: 15px;
  color: var(--color-primary);
}

/* =========================================
   Weekly Wardrobe (Grid 7)
   ========================================= */
.weekly-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.weekly-item {
  width: 180px; /* Fixed width for uniformity */
  text-align: center;
}

.weekly-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--border-radius-img);
  margin-bottom: 10px;
  transition: var(--transition-smooth);
}

.weekly-item:hover .weekly-img {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* =========================================
   Quote Section
   ========================================= */
.quote-section {
  background-color: #2C2C2C;
  color: #FFFFFF;
  padding: 120px 20px;
  text-align: center;
  margin-top: var(--spacing-section);
}

.quote-content {
  font-size: 28px;
  font-weight: 300;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.5;
}

.quote-author {
  font-size: 14px;
  color: #888888;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* =========================================
   Item Detail Page
   ========================================= */
.item-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
  padding-top: 40px;
}

.detail-image {
  border-radius: var(--border-radius-img);
  overflow: hidden;
}

.detail-info {
  padding-top: 20px;
}

.info-row {
  margin-bottom: 30px;
  border-bottom: 1px solid #EAEAEA;
  padding-bottom: 15px;
}

.info-label {
  display: block;
  font-size: 12px;
  color: var(--color-text-sub);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.info-value {
  font-size: 16px;
  color: var(--color-primary);
  line-height: 1.6;
}

/* =========================================
   Filters (Collections)
   ========================================= */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 20px;
}

.filter-btn {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--color-text-sub);
  cursor: pointer;
  padding: 5px 10px;
  transition: color 0.3s;
}

.filter-btn:hover, .filter-btn.active {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  padding: 60px 0;
  text-align: center;
  background-color: transparent;
}

.copyright {
  font-size: 14px;
  color: var(--color-footer);
  letter-spacing: 1px;
}

/* =========================================
   Utilities & Animations
   ========================================= */
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

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

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

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1024px) {
  .grid-3-col {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .item-detail-layout {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --spacing-section: 60px;
    --spacing-grid: 40px;
  }

  /* Mobile Nav */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: height 0.4s ease;
    gap: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-links.active {
    height: auto;
    padding-bottom: 20px;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links li a {
    display: block;
    padding: 20px;
    border-bottom: 1px solid #f9f9f9;
  }

  /* Layout Adjustments */
  .hero-title {
    font-size: 32px;
  }

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

  .item-detail-layout {
    grid-template-columns: 1fr;
  }

  .weekly-grid {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 20px;
  }

  .weekly-item {
    flex: 0 0 200px;
  }
  
  .container {
    padding: 0 20px;
  }
}