html, body { overflow-x: hidden; max-width: 100%; }
:root {
  --onyx: #000000; --ivory: #FAFAFA; --green: #262626; --green-deep: #000000;
  --gold: #E31E24; --gold-soft: #FF6B6B; --taupe: #6B6B6B; --hairline: #E5E5E5; --card: #FFFFFF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'IBM Plex Sans', sans-serif; color: var(--onyx); background: var(--ivory); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.nav { position: sticky; top: 0; z-index: 50; background: #000000; color: var(--ivory); border-bottom: 1px solid rgba(227,30,36,0.25); }
.nav-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 16px; flex-wrap: nowrap; }
.logo { font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: 1.5rem; display: flex; align-items: baseline; gap: 8px; }
.logo .logo-sub { font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 0.62rem; letter-spacing: 0.1em; opacity: 0.55; text-transform: uppercase; }
.nav-links { display: flex; gap: 26px; font-size: 0.86rem; font-weight: 500; align-items: center; }
.nav-links a { opacity: 0.85; } .nav-links a:hover { opacity: 1; color: var(--gold-soft); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 480px) { .nav-inner { flex-wrap: wrap; row-gap: 10px; } .nav-right { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-end; gap: 10px; } }

.nav-select { appearance: none; -webkit-appearance: none; background: rgba(255,255,255,0.04); color: var(--ivory);
  border: 1px solid rgba(227,30,36,0.35); font-size: 0.76rem; font-family: 'IBM Plex Mono', monospace;
  padding: 6px 26px 6px 10px; border-radius: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23F5D76E' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 8px center; }
.nav-select-fix { color-scheme: dark; }
.nav-select-fix option { background: #14161a; color: #FAFAFA; }

.account-link { display:inline-flex; align-items:center;
  color: var(--ivory); font-size: 0.82rem; font-weight: 600; opacity: 0.9;
  border: 1px solid rgba(227,30,36,0.35); border-radius: 20px; padding: 6px 14px; white-space: nowrap;
}
.account-link:hover { opacity: 1; color: var(--gold-soft); border-color: var(--gold); }

.nav-dropdown { position: relative; }
.nav-dropdown > span { cursor: default; opacity: 0.85; display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown:hover > span { opacity: 1; color: var(--gold-soft); }
.nav-dropdown-panel {
  position: absolute; top: 100%; left: 0; margin-top: 14px; background: #16171A; border: 1px solid rgba(227,30,36,0.25);
  border-radius: 8px; padding: 6px 0; min-width: 190px; box-shadow: 0 14px 30px rgba(0,0,0,0.35);
  opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity 0.15s, transform 0.15s; z-index: 60;
}
.nav-dropdown-panel::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; pointer-events: auto; }
.nav-dropdown:hover .nav-dropdown-panel { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown-panel a { display: block; padding: 10px 18px; font-size: 0.84rem; color: var(--ivory); opacity: 0.9; }
.nav-dropdown-panel a:hover { background: rgba(255,255,255,0.06); color: var(--gold-soft); opacity: 1; }

.breadcrumb-bar { background: var(--card); border-bottom: 1px solid var(--hairline); padding: 14px 24px; }
.breadcrumb { max-width: 1200px; margin: 0 auto; font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--taupe); }
.breadcrumb a { color: var(--taupe); } .breadcrumb a:hover { color: var(--green); text-decoration: underline; }

.layout { max-width: 1200px; margin: 0 auto; padding: 36px 24px 80px; display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

.cart-panel { background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; padding: 26px; }
.cart-panel h1 { font-family: 'Big Shoulders Display', sans-serif; font-size: 1.6rem; text-transform: uppercase; margin-bottom: 20px; }

.select-all-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--hairline); }
.select-all-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--onyx); cursor: pointer; }
.select-all-label input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
#removeSelectedBtn { background: none; border: none; color: var(--taupe); font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
#removeSelectedBtn:hover:not(:disabled) { color: #C0392B; }
#removeSelectedBtn:disabled { color: #D4D4D4; cursor: not-allowed; text-decoration: none; }

.cart-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.cart-item:last-child { border-bottom: none; }
.item-select-checkbox { width: 16px; height: 16px; accent-color: var(--gold); flex-shrink: 0; cursor: pointer; }
.cart-item-thumb { width: 64px; height: 64px; border-radius: 8px; background: #EFEFEF; display: flex; align-items: center; justify-content: center; color: var(--green); flex-shrink: 0; position: relative; }
.stock-badge { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); background: var(--onyx); color: var(--ivory); font-size: 0.58rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.cart-condition-select { display: block; width: fit-content; max-width: 100%; margin: 4px 0 6px; padding: 5px 24px 5px 9px; border-radius: 6px; border: 1px solid var(--hairline); font-size: 0.78rem; background: #fff; }
.price-now { font-weight: 700; font-size: 0.9rem; font-family: 'IBM Plex Mono', monospace; color: var(--onyx); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { font-size: 0.94rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 0.85rem; color: var(--taupe); font-family: 'IBM Plex Mono', monospace; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.qty-control button { background: none; border: none; width: 32px; height: 32px; font-size: 1rem; }
.qty-control button:hover { background: var(--ivory); }
.qty-control span { width: 32px; text-align: center; font-size: 0.88rem; }
.cart-item-total { font-weight: 700; font-size: 0.95rem; min-width: 80px; text-align: right; flex-shrink: 0; }
.remove-btn { background: none; border: none; color: var(--taupe); font-size: 0.78rem; text-decoration: underline; flex-shrink: 0; }
.remove-btn:hover { color: #C0392B; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--taupe); }
.empty-state p { margin-bottom: 18px; font-size: 0.95rem; }
.browse-btn { display: inline-block; background: var(--onyx); color: var(--ivory); padding: 12px 26px; border-radius: 8px; font-weight: 700; font-size: 0.85rem; }
.browse-btn:hover { background: var(--green); }

.summary-panel { background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; padding: 26px; position: sticky; top: 90px; }
.summary-panel h2 { font-family: 'Big Shoulders Display', sans-serif; font-size: 1.2rem; text-transform: uppercase; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 8px 0; color: var(--taupe); }
.summary-row.total { color: var(--onyx); font-weight: 700; border-top: 1px solid var(--hairline); margin-top: 8px; padding-top: 14px; font-size: 1rem; }
.summary-row.total b { font-family: 'IBM Plex Mono', monospace; color: var(--onyx); font-size: 1.25rem; }

.checkout-btn { display: block; text-align: center; background: var(--gold); color: var(--onyx); padding: 15px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; margin-top: 18px; }
.checkout-btn:hover { background: var(--gold-soft); }
.checkout-btn.disabled { pointer-events: none; opacity: 0.4; }

.pay-with { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.pay-with-label { font-size: 0.78rem; font-weight: 600; margin-bottom: 10px; color: var(--taupe); }
.pay-icons-row { display: flex; gap: 6px; flex-wrap: nowrap; }
.pay-icon-mini { width: 34px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--hairline); overflow: hidden; }
.pay-icon-mini img { width: 100%; height: 100%; object-fit: contain; }
.pay-icon-mini-crypto { width: 26px; height: 26px; border-radius: 50%; }

.trust-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.78rem; color: var(--taupe); }
.trust-note svg { color: var(--green); flex-shrink: 0; }

footer { background: var(--card); border-top: 1px solid var(--hairline); }
.footer-bottom { max-width: 1240px; margin: 0 auto; padding: 24px; font-size: 0.78rem; color: var(--taupe); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

#accountNavDropdownPanel { left: auto; right: 0; }

.nav-inner > * { flex-shrink: 0; }
.nav-links a, .nav-select, .account-link, .nav-dropdown > span { white-space: nowrap; }
.logo-full { height: 68px !important; width: auto !important; max-width: 300px !important; max-height: 68px !important; object-fit: contain !important; display: block !important; }
.footer-social-row-compact { max-width: 1240px; margin: 0 auto; padding: 18px 24px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .footer-social-label { font-size: 0.82rem; font-weight: 700; color: var(--onyx); } .footer-social-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.15s; } .footer-social-icon:hover { transform: translateY(-2px); }
