/* ── SHOP GLOBAL ──────────────────────────────────────── */
.shop-main { max-width: 900px; margin: 0 auto; padding: 120px 24px 60px; }
.shop-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 400; margin-bottom: 32px; }
.shop-title span { font-size: 1rem; color: #999; }
.shop-btn { display: inline-block; padding: 14px 28px; background: #f0ece8; border: 1px solid #e0d8d2; color: #1a1a1a; text-decoration: none; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: .2s; font-family: inherit; }
.shop-btn:hover { background: #e8e2dc; }
.shop-btn-dark { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.shop-btn-dark:hover { background: #333; }
.shop-btn-outline { background: transparent; border: 1px solid #ddd; color: #1a1a1a; }
.shop-btn-outline:hover { border-color: #C2B1A5; }
.cart-badge { position: absolute; top: -6px; right: -8px; background: #1a1a1a; color: #fff; font-size: .55rem; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ── AUTH ─────────────────────────────────────────────── */
.auth-wrap { display: flex; align-items: center; justify-content: center; min-height: 80vh; padding: 24px; }
.auth-card { background: #fff; border: 1px solid #ede8e3; border-radius: 2px; padding: 40px; width: 100%; max-width: 400px; }
.auth-logo img { height: 36px; mix-blend-mode: multiply; display: block; margin: 0 auto 28px; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid #f0ece8; }
.auth-tab { flex: 1; padding: 10px; background: none; border: none; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: #999; cursor: pointer; font-family: inherit; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tab.active { color: #1a1a1a; border-bottom-color: #1a1a1a; }
.auth-input { width: 100%; padding: 12px 14px; border: 1px solid #e0d8d2; background: #f9f7f5; font-size: .82rem; font-family: inherit; border-radius: 1px; }
.auth-input:focus { outline: none; border-color: #C2B1A5; background: #fff; }
.auth-btn { padding: 14px; background: #1a1a1a; color: #fff; border: none; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; font-family: inherit; width: 100%; }
.auth-msg { padding: 10px 14px; border-radius: 2px; font-size: .8rem; margin-bottom: 16px; }
.auth-msg.err { background: #fdf0f0; color: #c0392b; border: 1px solid #f5c6c6; }
.auth-msg.ok  { background: #f0fdf4; color: #1a6b35; border: 1px solid #c6f5d6; }

/* ── CART ─────────────────────────────────────────────── */
.cart-empty { text-align: center; padding: 60px 0; color: #999; line-height: 2; }
.cart-empty span { font-size: .82rem; }
.cart-items { display: flex; flex-direction: column; gap: 1px; margin-bottom: 32px; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto 32px; gap: 16px; align-items: center; background: #fff; padding: 16px; border: 1px solid #f0ece8; }
.cart-item img { width: 80px; height: 80px; object-fit: cover; }
.cart-item-name { font-size: .88rem; font-weight: 500; margin-bottom: 4px; }
.cart-item-opt  { font-size: .72rem; color: #999; }
.cart-item-price { font-size: .78rem; color: #C2B1A5; margin-top: 4px; }
.cart-item-qty  { display: flex; align-items: center; gap: 12px; font-size: .85rem; }
.cart-item-qty button { width: 28px; height: 28px; border: 1px solid #e0d8d2; background: none; cursor: pointer; font-size: 1rem; }
.cart-item-total { font-size: .88rem; font-weight: 500; min-width: 80px; text-align: right; }
.cart-item-del  { background: none; border: none; color: #ccc; cursor: pointer; font-size: .9rem; }
.cart-item-del:hover { color: #e74c3c; }
.cart-summary { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; padding-top: 24px; border-top: 1px solid #f0ece8; }
.cart-subtotal { display: flex; gap: 40px; font-size: .9rem; font-weight: 500; }

/* ── CHECKOUT ─────────────────────────────────────────── */
.checkout-wrap .shop-main { max-width: 1100px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.checkout-form { display: flex; flex-direction: column; gap: 8px; }
.co-section { font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: #C2B1A5; margin: 20px 0 8px; }
.co-input { width: 100%; padding: 12px 14px; border: 1px solid #e0d8d2; background: #f9f7f5; font-size: .82rem; font-family: inherit; box-sizing: border-box; }
.co-input:focus { outline: none; border-color: #C2B1A5; background: #fff; }
.discount-row { display: flex; gap: 8px; }
.co-btn-outline { padding: 12px 18px; background: none; border: 1px solid #e0d8d2; color: #1a1a1a; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; font-family: inherit; white-space: nowrap; }
.co-btn-outline:hover { border-color: #C2B1A5; }
.checkout-summary { background: #f9f7f5; border: 1px solid #ede8e3; padding: 24px; position: sticky; top: 100px; }
.co-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.co-item img { width: 56px; height: 56px; object-fit: cover; flex-shrink: 0; }
.co-item-name { font-size: .82rem; font-weight: 500; }
.co-item-opt  { font-size: .7rem; color: #999; }
.co-item-qty  { font-size: .7rem; color: #999; }
.co-item-price { font-size: .82rem; font-weight: 500; margin-left: auto; flex-shrink: 0; }
.co-divider { border: none; border-top: 1px solid #ede8e3; margin: 16px 0; }
.co-total-row { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 10px; }

/* ── CONFIRM ──────────────────────────────────────────── */
.confirm-summary { max-width: 440px; margin: 32px auto; background: #f9f7f5; border: 1px solid #ede8e3; padding: 24px; text-align: left; }

/* ── ACCOUNT ──────────────────────────────────────────── */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.order-card { background: #f9f7f5; border: 1px solid #ede8e3; padding: 16px; margin-bottom: 12px; }
.order-card-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.order-id { font-family: monospace; font-size: .82rem; font-weight: 600; }
.order-status { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; background: #fff; border: 1px solid #e0d8d2; }
.order-status.new { border-color: #C2B1A5; color: #C2B1A5; }
.addr-card { background: #f9f7f5; border: 1px solid #ede8e3; padding: 14px; margin-bottom: 10px; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; order: -1; }
  .account-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr; grid-template-rows: auto auto auto; }
  .cart-item img { width: 64px; height: 64px; grid-row: 1/4; }
  .cart-item-total, .cart-item-del { grid-column: 2; }
}
