/* ============================================================
   OBJ0100 — style.css
   All visual styles in one place
   ============================================================ */

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

/* === EDIT: COLORS === */
:root {
  --bg:    #f5f5f3;
  --black: #0a0a0a;
  --gray:  #888;
  --mid:   #d0d0ce;
  --warm:  #eeecea;
  --light: #e4e2de;
  --font:  'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body { font-family: var(--font); background: var(--bg); color: var(--black); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; background: var(--bg);
  border-bottom: 0.5px solid transparent; transition: border-color 0.3s;
}
nav.scrolled { border-color: var(--mid); }
.nav-left  { display: flex; gap: 32px; }
.nav-right { display: flex; gap: 28px; }
nav a { text-decoration: none; color: var(--black); font-size: 11px; letter-spacing: 0.08em; cursor: pointer; }
nav a:hover { color: var(--gray); }

/* === EDIT: LOGO spacing === */
.nav-logo { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 28px; align-items: center; }
.nav-logo span { font-size: 10px; letter-spacing: 0.06em; font-weight: 400; color: var(--black); }

/* ── PAGES ── */
.page { display: none; padding-top: 57px; min-height: 100vh; }
.page.active { display: block; }
#page-info.active { display: flex; flex-direction: column; }

/* ── INFO ── */
.info-hero {
  height: calc(100vh - 57px); display: flex; align-items: flex-end;
  padding: 0 32px 48px; background: var(--warm);
}
.info-hero-text { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 60px; align-items: end; }
.info-hero-left h1 { font-size: clamp(52px,9vw,108px); font-weight: 300; letter-spacing: -0.03em; line-height: 0.9; }
.info-hero-right p { font-size: 12px; line-height: 1.9; color: #666; max-width: 360px; }
.info-section { padding: 80px 32px; border-top: 0.5px solid var(--mid); display: grid; grid-template-columns: 180px 1fr 1fr 1fr; gap: 40px; }
.info-label  { font-size: 10px; letter-spacing: 0.12em; color: var(--gray); text-transform: uppercase; padding-top: 4px; }
.col-num     { font-size: 10px; color: #bbb; margin-bottom: 12px; }
.col-title   { font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.col-body    { font-size: 11px; line-height: 1.9; color: #666; }

/* ── ARCHIVE ── */
.archive-header { padding: 60px 32px 28px; border-bottom: 0.5px solid var(--mid); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.archive-header h2 { font-size: clamp(40px,6vw,72px); font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.archive-header p  { font-size: 11px; line-height: 1.85; color: #666; max-width: 360px; align-self: end; }
.list-header { display: grid; grid-template-columns: 2fr 1.5fr 0.6fr 1fr; padding: 12px 32px; border-bottom: 0.5px solid var(--mid); background: var(--bg); position: sticky; top: 57px; z-index: 10; }
.list-header span { font-size: 10px; letter-spacing: 0.12em; color: var(--gray); text-transform: uppercase; }
.arc-row { display: grid; grid-template-columns: 2fr 1.5fr 0.6fr 1fr; padding: 15px 32px; border-bottom: 0.5px solid #e8e8e6; cursor: pointer; transition: background 0.12s; }
.arc-row:hover { background: #efeeec; }
.arc-row span { font-size: 11px; letter-spacing: 0.02em; }
.arc-row span.g { color: var(--gray); }
.arc-detail { display: none; padding: 60px 32px; border-bottom: 0.5px solid var(--mid); background: #f0eeec; }
.arc-detail.open { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.d-images { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.d-img { background: #e0deda; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.d-img img { width: 100%; height: 100%; object-fit: cover; }
.d-img span { font-size: 9px; color: #aaa; letter-spacing: 0.1em; }
.d-info h3 { font-size: 28px; font-weight: 300; margin-bottom: 36px; letter-spacing: -0.01em; }
.dmr { display: grid; grid-template-columns: 52px 80px 1fr; gap: 8px; padding: 10px 0; border-bottom: 0.5px solid #dddbd8; font-size: 11px; }
.mn { color: #bbb; } .mk { color: var(--gray); }

/* ── SHOP ── */
.shop-header { padding: 60px 32px 28px; border-bottom: 0.5px solid var(--mid); display: flex; align-items: baseline; justify-content: space-between; }
.shop-header h2 { font-size: clamp(40px,6vw,72px); font-weight: 300; letter-spacing: -0.02em; }
.shop-count { font-size: 11px; color: var(--gray); }
.shop-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--mid); }
.s-item { background: var(--bg); cursor: pointer; overflow: hidden; }
.s-img-wrap { overflow: hidden; aspect-ratio: 1; }
.s-ph { width: 100%; height: 100%; background: var(--light); display: flex; align-items: center; justify-content: center; transition: background 0.4s; }
.s-ph img { width: 100%; height: 100%; object-fit: cover; }
.s-item:hover .s-ph { background: #d8d6d2; }
.s-ph span { font-size: 9px; color: #aaa; letter-spacing: 0.1em; }
.s-info { padding: 16px 20px 22px; }
.s-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.s-name  { font-size: 12px; font-weight: 500; }
.s-price { font-size: 11px; color: var(--gray); }
.s-sub   { font-size: 10px; color: #aaa; letter-spacing: 0.04em; }

/* ── ITEM OVERLAY ── */
.overlay { display: none; position: fixed; inset: 0; z-index: 200; background: var(--bg); overflow-y: auto; }
.overlay.open { display: block; }
.ov-nav { position: sticky; top: 0; z-index: 10; padding: 16px 32px; display: flex; justify-content: space-between; background: var(--bg); border-bottom: 0.5px solid var(--mid); }
.ov-back { font-size: 11px; letter-spacing: 0.08em; cursor: pointer; }
.ov-back:hover { color: var(--gray); }
.ov-body { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 57px); }
.ov-images { border-right: 0.5px solid var(--mid); display: flex; flex-direction: column; gap: 1px; background: var(--mid); }
.ov-img { background: var(--light); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #aaa; letter-spacing: 0.1em; overflow: hidden; }
.ov-img img { width: 100%; height: 100%; object-fit: cover; }
.ov-info { padding: 56px 48px; display: flex; flex-direction: column; justify-content: space-between; }
.ov-id    { font-size: 10px; color: #bbb; letter-spacing: 0.14em; margin-bottom: 14px; }
.ov-name  { font-size: 36px; font-weight: 300; letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.1; }
.ov-maker { font-size: 11px; color: var(--gray); margin-bottom: 44px; }
.ov-meta  { width: 100%; border-collapse: collapse; margin-bottom: 52px; }
.ov-meta tr { border-bottom: 0.5px solid var(--light); }
.ov-meta td { padding: 11px 0; font-size: 11px; }
.ov-meta td:first-child { color: var(--gray); width: 100px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.ov-price  { font-size: 26px; font-weight: 300; }
.ov-avail  { font-size: 10px; color: #aaa; letter-spacing: 0.1em; }
.btn-add { width: 100%; padding: 15px; background: var(--black); color: #fff; border: none; font-size: 11px; letter-spacing: 0.14em; cursor: pointer; font-family: var(--font); text-transform: uppercase; transition: background 0.2s; }
.btn-add:hover { background: #333; }

/* ── FOOTER / NEWSLETTER ── */
footer { padding: 28px 32px; border-top: 0.5px solid var(--mid); display: flex; justify-content: space-between; }
footer span { font-size: 10px; color: var(--gray); letter-spacing: 0.06em; }
.nl { padding: 56px 32px; border-top: 0.5px solid var(--mid); display: flex; justify-content: space-between; align-items: center; }
.nl-inner { display: flex; gap: 20px; align-items: center; flex: 1; max-width: 420px; margin-left: 60px; }
.nl input { flex: 1; border: none; border-bottom: 0.5px solid #999; background: transparent; font-size: 11px; padding: 8px 0; outline: none; font-family: inherit; color: var(--black); }
.nl-btn { font-size: 11px; cursor: pointer; letter-spacing: 0.08em; border-bottom: 0.5px solid var(--black); white-space: nowrap; }

/* ============================================================
   MOBILE RESPONSIVE — max-width: 768px
   ============================================================ */

@media (max-width: 768px) {

  /* NAV */
  nav { padding: 14px 20px; }
  .nav-left { gap: 20px; }
  .nav-right { gap: 16px; }
  .nav-right a:nth-child(1),
  .nav-right a:nth-child(2) { display: none; } /* hide Search + Account on mobile */
  .nav-logo { gap: 16px; }
  .nav-logo span { font-size: 9px; }

  /* INFO HERO */
  .info-hero {
    height: auto;
    min-height: calc(100vh - 50px);
    padding: 0 20px 40px;
  }
  .info-hero-text {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .info-hero-right p { max-width: 100%; }

  /* INFO SECTION */
  .info-section {
    grid-template-columns: 1fr;
    padding: 48px 20px;
    gap: 32px;
  }
  .info-label { display: none; }

  /* ARCHIVE HEADER */
  .archive-header {
    grid-template-columns: 1fr;
    padding: 40px 20px 20px;
    gap: 16px;
  }

  /* ARCHIVE LIST */
  .list-header { padding: 10px 20px; grid-template-columns: 1fr 1fr; }
  .list-header span:nth-child(3),
  .list-header span:nth-child(4) { display: none; }
  .arc-row { grid-template-columns: 1fr 1fr; padding: 14px 20px; }
  .arc-row span:nth-child(3),
  .arc-row span:nth-child(4) { display: none; }

  /* ARCHIVE DETAIL */
  .arc-detail.open {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 20px;
  }

  /* SHOP HEADER */
  .shop-header { padding: 40px 20px 20px; }

  /* SHOP GRID — 2 columns on mobile */
  .shop-grid { grid-template-columns: repeat(2,1fr); }
  .s-info { padding: 12px 14px 16px; }
  .s-name { font-size: 11px; }
  .s-price { font-size: 10px; }

  /* ITEM OVERLAY */
  .ov-body { grid-template-columns: 1fr; }
  .ov-images {
    border-right: none;
    border-bottom: 0.5px solid var(--mid);
    flex-direction: row;
    overflow-x: auto;
  }
  .ov-img { min-width: 80vw; aspect-ratio: 1; flex-shrink: 0; }
  .ov-info { padding: 32px 20px 40px; justify-content: flex-start; gap: 32px; }
  .ov-name { font-size: 26px; }
  .ov-meta { margin-bottom: 32px; }

  /* FOOTER */
  footer { flex-direction: column; gap: 8px; padding: 24px 20px; }

  /* NEWSLETTER */
  .nl { flex-direction: column; align-items: flex-start; gap: 20px; padding: 40px 20px; }
  .nl-inner { margin-left: 0; max-width: 100%; width: 100%; }
}

/* extra small phones */
@media (max-width: 390px) {
  .shop-grid { grid-template-columns: 1fr; }
  .ov-img { min-width: 95vw; }
}

/* ============================================================
   CART & CHECKOUT STYLES
   ============================================================ */

.text-link { font-size: 11px; letter-spacing: 0.08em; cursor: pointer; border-bottom: 0.5px solid var(--black); color: var(--black); }
.text-link:hover { color: var(--gray); border-color: var(--gray); }

/* ── inner page header ── */
.inner-header { padding: 60px 32px 28px; border-bottom: 0.5px solid var(--mid); }
.inner-header h2 { font-size: clamp(40px,6vw,72px); font-weight: 300; letter-spacing: -0.02em; line-height: 1; }

/* ── CART ── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1px; background: var(--mid); min-height: 60vh; align-items: start; }
.cart-items { background: var(--bg); padding: 0; }

.cart-row {
  display: grid; grid-template-columns: 72px 1fr 100px 100px 32px;
  align-items: center; gap: 20px;
  padding: 20px 32px; border-bottom: 0.5px solid #e8e8e6;
}
.cart-thumb {
  width: 72px; height: 72px; background: var(--light);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb span { font-size: 9px; color: #aaa; }
.cart-item-name { font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.cart-item-sub  { font-size: 10px; color: var(--gray); letter-spacing: 0.04em; }
.cart-qty { display: flex; align-items: center; gap: 12px; }
.cart-qty button { background: none; border: 0.5px solid var(--mid); width: 24px; height: 24px; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; color: var(--black); font-family: var(--font); }
.cart-qty button:hover { border-color: var(--black); }
.cart-qty span { font-size: 12px; min-width: 16px; text-align: center; }
.cart-item-price { font-size: 12px; text-align: right; }
.cart-remove { font-size: 11px; color: var(--gray); cursor: pointer; text-align: center; }
.cart-remove:hover { color: var(--black); }

.cart-empty { padding: 80px 32px; display: flex; flex-direction: column; gap: 16px; }
.cart-empty p { font-size: 13px; color: var(--gray); }

/* ── cart summary ── */
.summary-box { background: var(--bg); padding: 40px 32px; position: sticky; top: 57px; }
.summary-row { display: flex; justify-content: space-between; font-size: 11px; padding: 10px 0; }
.summary-row span:first-child { color: var(--gray); }
.summary-divider { border-top: 0.5px solid var(--mid); margin: 8px 0; }
.summary-total { font-size: 14px; font-weight: 500; padding: 16px 0 24px; }
.btn-checkout { width: 100%; padding: 15px; background: var(--black); color: #fff; border: none; font-size: 11px; letter-spacing: 0.14em; cursor: pointer; font-family: var(--font); text-transform: uppercase; transition: background 0.2s; margin-bottom: 16px; }
.btn-checkout:hover { background: #333; }
.summary-continue { text-align: center; }

/* ── CHECKOUT ── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 1px; background: var(--mid); min-height: 70vh; align-items: start; }
.co-form-col { background: var(--bg); padding: 48px 40px 60px; }
.co-summary-col { background: #f0eeec; padding: 48px 32px; position: sticky; top: 57px; }

.co-section-title { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 0.5px solid var(--mid); }
.co-field { margin-bottom: 20px; }
.co-field label { display: block; font-size: 10px; letter-spacing: 0.08em; color: var(--gray); margin-bottom: 8px; }
.co-field input, .co-field textarea {
  width: 100%; border: none; border-bottom: 0.5px solid var(--mid);
  background: transparent; font-size: 12px; padding: 10px 0; outline: none;
  font-family: var(--font); color: var(--black); transition: border-color 0.2s;
  resize: none;
}
.co-field input:focus, .co-field textarea:focus { border-color: var(--black); }
.req { color: var(--gray); }

.co-payment-note { font-size: 11px; line-height: 1.8; color: #666; background: #f0eeec; padding: 16px 20px; margin-bottom: 32px; }
.co-error { font-size: 11px; color: #c0392b; margin-bottom: 16px; min-height: 16px; }
.btn-place-order { width: 100%; padding: 15px; background: var(--black); color: #fff; border: none; font-size: 11px; letter-spacing: 0.14em; cursor: pointer; font-family: var(--font); text-transform: uppercase; transition: background 0.2s; }
.btn-place-order:hover { background: #333; }

.co-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 0.5px solid #dddbd8; font-size: 11px; }
.co-item-name { color: var(--black); }
.co-qty { color: var(--gray); }
.co-item-price { color: var(--black); }
.co-summary-divider { border-top: 0.5px solid var(--mid); margin: 16px 0; }
.co-summary-total-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; padding-top: 4px; }

/* ── ORDER CONFIRM ── */
.order-confirm { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 60px 32px; }
.confirm-box { max-width: 480px; width: 100%; text-align: center; }
.confirm-check { width: 48px; height: 48px; border: 0.5px solid var(--black); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; margin: 0 auto 24px; }
.confirm-box h3 { font-size: 24px; font-weight: 300; margin-bottom: 20px; }
.confirm-box p { font-size: 12px; line-height: 1.8; color: #555; margin-bottom: 8px; }
.confirm-total { font-size: 18px; font-weight: 300; margin-top: 24px; }

/* ── MOBILE: CART & CHECKOUT ── */
@media (max-width: 768px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 56px 1fr 80px 80px 24px; gap: 12px; padding: 16px 20px; }
  .cart-thumb { width: 56px; height: 56px; }
  .summary-box { position: static; padding: 32px 20px; }
  .inner-header { padding: 40px 20px 20px; }

  .checkout-layout { grid-template-columns: 1fr; }
  .co-form-col { padding: 32px 20px 40px; }
  .co-summary-col { position: static; padding: 32px 20px; }
}
