:root {
  --bg: #FAF8F5;
  --bg-warm: #F2ECE4;
  --surface: #FFFFFF;
  --ink: #171817;
  --ink-muted: #686662;
  --line: #E6E0D6;
  --line-dark: #C9BFA9;
  --accent: #1E3F33;
  --gold: #A68966;
  --sale: #9E3B3B;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Top Bar */
.topbar {
  background: var(--ink);
  color: #F5F1EA;
  text-align: center;
  padding: 9px 16px;
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Editorial Header (Zara / Massimo / Suud style) */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-left a,
.nav-right-link {
  text-decoration: none;
  color: var(--ink);
  font-size: 11.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}

.nav-left a:hover,
.nav-left a.active {
  border-bottom-color: var(--ink);
}

.logo-center {
  text-decoration: none;
  color: var(--ink);
  text-align: center;
}

.logo-word {
  display: block;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: 8px;
  line-height: 1;
  padding-left: 8px;
}

.logo-sub {
  display: block;
  font-size: 8.5px;
  letter-spacing: 4.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
}

.text-action {
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-action:hover {
  opacity: 0.7;
}

/* Search Bar Drop */
.search-bar {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 36px;
}

.search-bar.open {
  display: block;
}

.search-bar input {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: block;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 8px 4px;
  font-family: var(--sans);
  font-size: 14px;
  background: transparent;
  outline: none;
}

/* Editorial Hero */
.hero-editorial {
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: 74vh;
  border-bottom: 1px solid var(--line);
}

.hero-text-pane {
  background: var(--bg-warm);
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-kicker {
  font-size: 10.5px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-main h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 3.8vw, 56px);
  font-weight: 500;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--ink);
}

.hero-main p {
  font-size: 14.5px;
  color: var(--ink-muted);
  max-width: 430px;
  margin-bottom: 34px;
  line-height: 1.7;
}

.btn-editorial {
  display: inline-block;
  background: var(--ink);
  color: #FFF;
  text-decoration: none;
  padding: 14px 32px;
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.22s, color 0.22s;
}

.btn-editorial:hover {
  background: transparent;
  color: var(--ink);
}

.btn-editorial-outline {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 28px;
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--line-dark);
  cursor: pointer;
  transition: border-color 0.22s;
}

.btn-editorial-outline:hover {
  border-color: var(--ink);
}

.hero-foot-note {
  font-size: 11.5px;
  color: var(--ink-muted);
  letter-spacing: 0.4px;
  border-top: 1px solid var(--line-dark);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
}

.hero-image-pane {
  position: relative;
  overflow: hidden;
  background: #E7DFD3;
}

.hero-image-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Toolbar / Filters */
.catalog-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 52px 36px 84px;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 22px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.cat-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.cat-btn {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
}

.cat-btn.active,
.cat-btn:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 500;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.color-filter-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.color-filter-label {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-right: 4px;
}

.color-dot-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
  cursor: pointer;
  position: relative;
  background: #FFF;
}

.color-dot-btn.active {
  outline: 1.5px solid var(--ink);
  outline-offset: 2px;
}

.sort-select {
  border: none;
  border-bottom: 1px solid var(--line-dark);
  background: transparent;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 4px;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}

/* Authentic Fashion Product Grid (Borderless Editorial Cards) */
.fashion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 22px;
}

.fashion-item {
  display: flex;
  flex-direction: column;
}

.item-photo-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ECE6DC;
  cursor: pointer;
}

.item-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.fashion-item:hover .item-photo-wrap img {
  transform: scale(1.035);
}

.item-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(250, 248, 245, 0.92);
  color: var(--ink);
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 9px;
}

.item-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(250, 248, 245, 0.85);
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover Quick-Add Size Strip (Just like Zara / Suud / Manuka) */
.quick-size-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(6px);
  padding: 10px 8px;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.26s ease;
  text-align: center;
}

.fashion-item:hover .quick-size-bar {
  transform: translateY(0);
  opacity: 1;
}

.quick-size-title {
  display: block;
  font-size: 9.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.quick-sizes {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.q-size {
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 7px;
  cursor: pointer;
  color: var(--ink);
}

.q-size:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--ink);
  color: #FFF;
}

.q-size:disabled {
  color: #BDB7AE;
  text-decoration: line-through;
  cursor: not-allowed;
}

.item-meta {
  padding-top: 13px;
}

.item-row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.item-title {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.4;
}

.item-title:hover {
  text-decoration: underline;
}

.item-prices {
  text-align: right;
  white-space: nowrap;
}

.price-old {
  font-size: 12px;
  color: var(--ink-muted);
  text-decoration: line-through;
  margin-right: 6px;
}

.price-now {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.item-subrow {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-fabric {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.item-swatches {
  display: flex;
  gap: 5px;
}

.item-swatches i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.16);
}

/* Editorial Story Section (Magazine Layout) */
.editorial-story {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-warm);
}

.story-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 36px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}

.story-left span {
  font-size: 10.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

.story-left h2 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
}

.story-right p {
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: 18px;
  line-height: 1.8;
}

.story-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.story-specs strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.story-specs span {
  font-size: 12px;
  color: var(--ink-muted);
}

/* Minimal Service Promises */
.service-bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.service-col h4 {
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}

.service-col p {
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Footer */
.footer {
  background: var(--bg);
  padding: 64px 36px 36px;
}

.footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 6px;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 300px;
}

.footer-col h5 {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-base {
  max-width: 1440px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* Product Detail Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 24, 23, 0.48);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.detail-dialog {
  background: var(--surface);
  max-width: 920px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
  z-index: 2;
}

.detail-media {
  background: #ECE6DC;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-content {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
}

.detail-sku {
  font-size: 10.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.detail-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 12px;
}

.detail-price {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.detail-desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.size-picker-label {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.size-boxes {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.sz-box {
  width: 46px;
  height: 42px;
  border: 1px solid var(--line-dark);
  background: transparent;
  font-family: var(--sans);
  font-size: 12.5px;
  cursor: pointer;
}

.sz-box.active {
  background: var(--ink);
  color: #FFF;
  border-color: var(--ink);
}

.sz-box:disabled {
  color: #C5BFB6;
  border-color: var(--line);
  text-decoration: line-through;
  cursor: not-allowed;
}

.detail-specs {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.8;
}

/* Cart & Checkout Drawer */
.bag-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: var(--surface);
  z-index: 250;
  border-left: 1px solid var(--line);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.bag-drawer.open {
  right: 0;
}

.bag-header {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bag-header h3 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.bag-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 26px;
}

.bag-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.bag-item img {
  width: 68px;
  height: 90px;
  object-fit: cover;
}

.bag-footer {
  padding: 22px 26px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.checkout-form {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.checkout-form.open {
  display: flex;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-dark);
  font-family: var(--sans);
  font-size: 13px;
  background: #FFF;
  outline: none;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: #FFF;
  padding: 12px 24px;
  font-size: 12px;
  letter-spacing: 1px;
  z-index: 400;
  opacity: 0;
  transition: all 0.25s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 1080px) {
  .hero-editorial, .story-inner { grid-template-columns: 1fr; }
  .fashion-grid { grid-template-columns: repeat(2, 1fr); }
  .service-bar, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-left { display: none; }
  .header-wrap { grid-template-columns: auto 1fr; }
  .logo-center { text-align: left; }
}

@media (max-width: 600px) {
  .fashion-grid, .service-bar, .footer-grid, .detail-dialog, .story-specs {
    grid-template-columns: 1fr;
  }
  .hero-text-pane { padding: 40px 24px; }
  .catalog-wrap { padding: 36px 20px 60px; }
}
