/* ============================================
   YUSHI — Brand System
   Monochrome. Paper and ink. The only ornament is the hallmark —
   the sakura mark from the wordmark, used sparingly.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..72,300..700;1,9..72,300..700&family=Archivo:wght@300;400;500;600;700&display=swap');

:root {
  /* Palette — paper & ink only, no hue */
  --canvas:      #F7F5F0;   /* warm paper background */
  --surface:     #FFFFFF;   /* card / panel background */
  --surface-2:   #ECE9E1;   /* hover / raised surface */
  --line:        #DBD7CC;   /* hairline borders */
  --ivory:       #17160F;   /* primary text — ink */
  --ivory-dim:   #6E6A5E;   /* secondary text */
  --brass:       #17160F;   /* "accent" role — kept monochrome, read via weight/spacing */
  --brass-bright:#000000;   /* pressed / hover-darken state */
  --oxblood:     #17160F;   /* badges & alerts — monochrome, differentiated by fill */
  --ok:          #17160F;   /* success — monochrome */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Archivo', -apple-system, sans-serif;

  --radius: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  /* Fraunces is a variable font — its "opsz" (optical size) axis swings
     glyphs from plain at low values to very swashy/wonky at high ones
     (that dramatic curled "J" tail). Left on "auto", browsers pick opsz
     from the rendered font-size, so a 58px hero headline gets pushed to
     an extreme, cartoonish instance. Pinning it to a moderate fixed
     value keeps the character without the glyphs going erratic at
     different heading sizes. */
  font-optical-sizing: none;
  font-variation-settings: 'opsz' 30;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory);
  font-weight: 600;
}

/* ---------- Hallmark — the signature mark ---------- */
/* The sakura mark from the Yushi wordmark, reused sparingly: hero,
   newsletter popup, product care notes — the way sterling silver itself
   is stamped for purity and origin. */

.hallmark-badge {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  padding: 6px;
  background: rgba(247, 245, 240, 0.92);
  border-radius: 50%;
  z-index: 2;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: var(--ivory);
}

.logo .row {
  font-style: italic;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links a {
  color: var(--ivory-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

.nav-links a:hover { color: var(--ivory); border-color: var(--ivory); }

.cart-icon {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ivory);
}

/* ---------- Hero ---------- */

.hero {
  padding: 90px 0 100px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.08;
  margin: 20px 0 26px;
  font-weight: 400;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
}

.hero p {
  color: var(--ivory-dim);
  font-size: 16px;
  max-width: 420px;
  margin-bottom: 36px;
}

.hero-visual {
  aspect-ratio: 4/5;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.hero-visual img.hallmark-badge {
  width: 34px;
  height: 34px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--ivory);
  color: var(--ivory);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--radius);
}

.btn:hover { background: var(--ivory); color: var(--canvas); }

.btn-solid {
  background: var(--ivory);
  color: var(--canvas);
}

.btn-solid:hover { background: var(--brass-bright); border-color: var(--brass-bright); }

/* ---------- Section headers ---------- */

.section {
  padding: 84px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}

.section-head h2 { font-size: 32px; font-weight: 400; }

.section-head .eyebrow { display: block; margin-bottom: 10px; }

.view-all {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ivory-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}

.view-all:hover { color: var(--ivory); border-color: var(--ivory); }

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.product-card {
  background: transparent;
  padding: 0;
  position: relative;
}

.product-card .img-wrap {
  aspect-ratio: 4/5;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.product-card .img-wrap img:nth-child(2) {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .img-wrap img:nth-child(1) { opacity: 0; }
.product-card:hover .img-wrap img:nth-child(2) { opacity: 1; }

.sale-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--canvas);
  color: var(--ivory);
  border: 1px solid var(--ivory);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 10px;
  z-index: 2;
}

.product-info {
  padding: 16px 0 0;
}

.product-info .cat {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-bottom: 6px;
  font-weight: 500;
}

.product-info h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.price-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
}

.price { color: var(--ivory); font-weight: 500; }
.compare-price { color: var(--ivory-dim); text-decoration: line-through; font-size: 12px; }

/* ---------- Shop filters ---------- */

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--line);
  color: var(--ivory-dim);
  border-radius: var(--radius);
}

.pill.active, .pill:hover { border-color: var(--ivory); color: var(--ivory); }

select {
  background: var(--surface);
  color: var(--ivory);
  border: 1px solid var(--line);
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  border-radius: var(--radius);
}

/* ---------- Product detail ---------- */

.product-detail {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  padding: 64px 0;
}

.pd-gallery img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  margin-bottom: 8px;
}

.pd-info { padding-top: 8px; }
.pd-info .cat { color: var(--ivory-dim); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 500; }
.pd-info h1 { font-size: 34px; margin-bottom: 20px; font-weight: 400; }
.pd-price { font-size: 20px; margin-bottom: 32px; display: flex; gap: 14px; align-items: baseline; font-family: var(--font-body); }
.pd-desc { color: var(--ivory-dim); white-space: pre-line; line-height: 1.8; margin-bottom: 36px; font-size: 14.5px; }
.pd-meta {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  font-size: 12px;
  color: var(--ivory-dim);
  letter-spacing: 0.02em;
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-grid h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-grid a, .footer-grid p {
  display: block;
  font-size: 13px;
  color: var(--ivory-dim);
  margin-bottom: 10px;
}

.footer-grid a:hover { color: var(--ivory); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 11px;
  color: var(--ivory-dim);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Admin ---------- */

.admin-body { background: var(--canvas); }

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 220px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 30px 0;
}

.admin-sidebar .logo { padding: 0 24px 30px; display: block; }
.admin-sidebar a {
  display: block;
  padding: 12px 24px;
  font-size: 13px;
  color: var(--ivory-dim);
  letter-spacing: 0.02em;
}
.admin-sidebar a:hover, .admin-sidebar a.active { color: var(--ivory); background: var(--surface-2); }

.admin-main { flex: 1; padding: 40px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  margin-bottom: 40px;
  border: 1px solid var(--line);
}

.stat-card {
  background: var(--surface);
  padding: 26px;
}

.stat-card .label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivory-dim); margin-bottom: 10px; }
.stat-card .value { font-family: var(--font-display); font-size: 30px; color: var(--ivory); font-weight: 500; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { color: var(--ivory); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
tr:hover { background: var(--surface-2); }

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 50px;
  width: 340px;
}

input[type="text"], input[type="password"], input[type="number"], input[type="email"], textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ivory);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  margin-bottom: 18px;
  border-radius: var(--radius);
}

label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ivory-dim); display: block; margin-bottom: 8px; font-weight: 500; }

.flash { padding: 13px 16px; margin-bottom: 20px; font-size: 13px; border: 1px solid var(--ivory); }
.flash.success { background: var(--surface-2); color: var(--ivory); }
.flash.error { background: var(--ivory); color: var(--canvas); font-weight: 500; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 0 70px; }
  .hero h1 { font-size: 38px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .product-detail { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .logo { font-size: 18px; gap: 8px !important; }
  .logo-icon { width: 26px !important; height: 26px !important; }
  .site-header .container { padding: 0 16px; }
  .cart-icon { font-size: 11px; }
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
}

@media (max-width: 420px) {
  .logo { font-size: 15px; }
  .logo-icon { width: 22px !important; height: 22px !important; }
}
