@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --ev-canvas: #faf9f8;
  --ev-surface: #ffffff;
  --ev-stone: #f3f2ee;
  --ev-ink: #121212;
  --ev-secondary: #5c5a57;
  --ev-muted: #8c8882;
  --ev-line: rgba(18, 18, 18, 0.12);
  --ev-accent-warm: #a67c52;
  --ev-green: #295e3d;
  --ev-green-light: #eaf3ed;
  --ev-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ev-serif: 'Cormorant Garamond', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  background-color: var(--ev-canvas);
  color: var(--ev-ink);
  font-family: var(--ev-font);
  scroll-behavior: smooth;
}

body {
  background-color: var(--ev-canvas);
  min-height: 100vh;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* Everlane Top Bar */
.ev-announcement {
  background: var(--ev-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.ev-announcement a {
  text-decoration: underline;
  color: #edebe6;
  font-weight: 600;
}

/* Everlane Minimalist Sticky Header */
.ev-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(250, 249, 248, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ev-line);
  height: 72px;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ev-header-left {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 48px);
}

.ev-brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ev-ink);
  text-decoration: none;
  white-space: nowrap;
}

.ev-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ev-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ev-tools a:hover, .ev-tools button:hover {
  opacity: 0.6;
}
.ev-bag-pill {
  background: var(--ev-ink);
  color: #fff;
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* ========================================================
   EVERLANE HERO SPREAD: RADICAL TRANSPARENCY
   ======================================================== */
.ev-hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 56px) 64px;
}
.ev-hero-grid {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  background: var(--ev-surface);
  border: 1px solid var(--ev-line);
  padding: clamp(32px, 5vw, 56px);
}
.ev-hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ev-stone);
  overflow: hidden;
}
.ev-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.ev-hero-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ev-accent-warm);
  margin-bottom: 14px;
}
.ev-hero-h1 {
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.ev-hero-p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ev-secondary);
  margin-bottom: 28px;
  max-width: 440px;
}
.ev-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-ev-primary {
  display: inline-block;
  background: var(--ev-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 30px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid var(--ev-ink);
}
.btn-ev-primary:hover {
  background: #333;
}
.btn-ev-secondary {
  display: inline-block;
  background: transparent;
  color: var(--ev-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 30px;
  text-decoration: none;
  border: 1px solid var(--ev-line);
  transition: all 0.2s;
}
.btn-ev-secondary:hover {
  border-color: var(--ev-ink);
}

/* ========================================================
   EVERLANE COLLECTION FILTER & PRODUCT GRID
   ======================================================== */
.ev-collection-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) 80px;
}
.ev-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ev-line);
  border-bottom: 1px solid var(--ev-line);
  padding: 16px 0;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
.ev-category-links {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ev-cat-btn {
  background: none;
  border: none;
  color: var(--ev-secondary);
  cursor: pointer;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.ev-cat-btn.active {
  color: var(--ev-ink);
  font-weight: 600;
}
.ev-cat-btn.active::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ev-ink);
}

.ev-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ev-line);
  width: min(280px, 100%);
  padding: 4px 0;
}
.ev-search-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  font-family: inherit;
}

/* Everlane Product Cards Grid (Clean, Rectilinear) */
.ev-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 36px 24px;
}
.ev-product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--ev-surface);
  border: 1px solid var(--ev-line);
}
.ev-card-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ev-stone);
  overflow: hidden;
  cursor: pointer;
}
.ev-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Hover Quick Sizing Shelf */
.ev-quick-shelf {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  transform: translateY(100%);
  transition: transform 0.2s ease;
  border-top: 1px solid var(--ev-line);
}
.ev-product-card:hover .ev-quick-shelf {
  transform: translateY(0);
}
.ev-size-btn {
  background: #fff;
  border: 1px solid var(--ev-line);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.ev-size-btn:hover {
  background: var(--ev-ink);
  color: #fff;
  border-color: var(--ev-ink);
}

.ev-card-info {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.ev-swatches-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ev-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--ev-line);
}
.ev-swatch.active {
  box-shadow: 0 0 0 2px var(--ev-ink);
}

.ev-product-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.ev-product-factory {
  font-size: 11px;
  color: var(--ev-muted);
  margin-bottom: 12px;
}

.ev-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
}
.ev-our-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--ev-ink);
}
.ev-traditional-price {
  font-size: 12px;
  color: var(--ev-muted);
  text-decoration: line-through;
}

.ev-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ev-line);
}
.btn-ev-buy {
  background: var(--ev-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-ev-buy:hover {
  background: #333;
}

/* ========================================================
   EVERLANE "RADICAL TRANSPARENCY" COST BREAKDOWN
   ======================================================== */
.ev-transparency-section {
  background: var(--ev-surface);
  border-top: 1px solid var(--ev-line);
  border-bottom: 1px solid var(--ev-line);
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 56px);
}
.ev-transparency-container {
  max-width: 1200px;
  margin: 0 auto;
}
.ev-transparency-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.ev-transparency-header h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.ev-transparency-header p {
  font-size: 15px;
  color: var(--ev-secondary);
  line-height: 1.7;
}

.ev-cost-breakdown-card {
  background: var(--ev-canvas);
  border: 1px solid var(--ev-line);
  padding: clamp(32px, 5vw, 60px);
  display: grid;
  grid-template-columns: 45% 55%;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.ev-cost-line {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--ev-line);
  font-size: 13px;
}
.ev-cost-line strong {
  font-weight: 600;
}
.ev-cost-line span {
  color: var(--ev-secondary);
}

.ev-comparison-box {
  background: var(--ev-surface);
  border: 1px solid var(--ev-line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.ev-compare-price-large {
  font-size: 42px;
  font-weight: 700;
  color: var(--ev-ink);
  margin: 12px 0 6px;
}
.ev-compare-traditional {
  font-size: 14px;
  color: var(--ev-muted);
  text-decoration: line-through;
  margin-bottom: 24px;
}

/* ========================================================
   SLIDE-OUT EVERLANE SHOPPING BAG
   ======================================================== */
.ev-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.ev-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.ev-bag-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(460px, 100vw);
  background: #fff;
  z-index: 101;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.ev-bag-drawer.open {
  transform: translateX(0);
}
.ev-drawer-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--ev-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ev-drawer-header h3 {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ev-shipping-banner {
  background: var(--ev-green-light);
  color: var(--ev-green);
  font-size: 12px;
  font-weight: 600;
  padding: 12px 32px;
  border-bottom: 1px solid #d0e4d6;
}
.ev-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 32px;
}
.ev-bag-line {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ev-line);
}
.ev-bag-line img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  background: var(--ev-stone);
}
.ev-drawer-footer {
  padding: 24px 32px 36px;
  border-top: 1px solid var(--ev-line);
  background: var(--ev-canvas);
}

@media (max-width: 900px) {
  .ev-hero-grid { grid-template-columns: 1fr; }
  .ev-cost-breakdown-card { grid-template-columns: 1fr; }
  .ev-nav { display: none; }
}
