/* lookinchina.com — B2B/B2C Marketplace Stylesheet */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --navy: #0f172a;
  --navy-2: #1e293b;
  --crimson: #e11d48;
  --crimson-dark: #be123c;
  --amber: #f59e0b;
  --emerald: #059669;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 16px; }

/* Top Utility Bar */
.topbar { background: #020617; color: #cbd5e1; font-size: 12px; padding: 6px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; text-decoration: underline; }

/* Main Header (Amazon-inspired high-utility bar) */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 60; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.header-main { display: flex; align-items: center; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.brand-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--crimson), #f97316); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 18px; }
.brand-domain { color: #f8fafc; }
.brand-domain span { color: var(--amber); }

.search-bar { flex: 1; min-width: 260px; display: flex; background: #fff; border-radius: 8px; overflow: hidden; border: 2px solid transparent; transition: border-color .2s; }
.search-bar:focus-within { border-color: var(--amber); }
.search-cat { border: none; background: #f1f5f9; color: var(--navy); padding: 0 12px; font-size: 13px; border-right: 1px solid var(--border); max-width: 170px; outline: none; }
.search-input { flex: 1; border: none; padding: 10px 14px; font-size: 14px; outline: none; color: var(--text); }
.search-btn { background: var(--crimson); color: #fff; border: none; padding: 0 20px; font-weight: 600; cursor: pointer; transition: background .15s; }
.search-btn:hover { background: var(--crimson-dark); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.hdr-link { display: flex; flex-direction: column; font-size: 12px; line-height: 1.25; padding: 6px 10px; border-radius: 6px; transition: background .15s; }
.hdr-link:hover { background: rgba(255,255,255,0.1); }
.hdr-link strong { font-size: 13px; color: #fff; }
.cart-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--navy-2); border: 1px solid rgba(255,255,255,0.18); padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.cart-badge { background: var(--amber); color: #000; font-weight: 800; font-size: 12px; padding: 1px 7px; border-radius: 999px; }

.cat-nav { background: var(--navy-2); border-top: 1px solid rgba(255,255,255,0.08); }
.cat-nav-inner { display: flex; align-items: center; gap: 18px; overflow-x: auto; padding: 8px 0; font-size: 13px; color: #e2e8f0; white-space: nowrap; }
.cat-nav-inner a:hover { color: var(--amber); }

/* Buttons & Badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid transparent; transition: all .18s ease; }
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-dark); transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: #0f172a; }
.btn-amber:hover { background: #d97706; color: #fff; }
.btn-outline { background: #fff; border-color: var(--border); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); background: #f1f5f9; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-red { background: #ffe4e6; color: #9f1239; }
.badge-slate { background: #e2e8f0; color: #334155; }

/* Hero & Merchandising Grids */
.hero-wrap { background: linear-gradient(125deg, #0f172a 0%, #1e293b 55%, #3b0764 100%); color: #fff; padding: 34px 0; margin-bottom: 24px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.hero-title { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.15; margin: 0 0 12px; font-weight: 800; }
.hero-sub { color: #cbd5e1; font-size: 16px; margin: 0 0 20px; max-width: 600px; }
.hero-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: #cbd5e1; }
.hero-stats strong { color: var(--amber); font-size: 16px; display: block; }

.section-hdr { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 0 14px; }
.section-hdr h2 { font-size: 20px; font-weight: 800; margin: 0; }
.section-hdr a { color: var(--crimson); font-size: 13px; font-weight: 600; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-img { aspect-ratio: 4 / 3; background: #f1f5f9; overflow: hidden; display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.card-title { font-size: 14px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-short { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font-size: 18px; font-weight: 800; color: var(--crimson); margin-top: auto; }
.card-meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }

/* Single Product Page (ChinaGoods-inspired + Short Description + Image Variations) */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin: 14px 0; }
.breadcrumb a:hover { color: var(--crimson); text-decoration: underline; }

.product-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-sm); }
.gallery-wrap { display: grid; grid-template-columns: 76px 1fr; gap: 12px; }
.thumb-col { display: flex; flex-direction: column; gap: 10px; }
.thumb-btn { width: 76px; height: 76px; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; cursor: pointer; padding: 0; background: #fff; }
.thumb-btn.active { border-color: var(--crimson); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.main-viewer { position: relative; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; aspect-ratio: 1 / 1; cursor: zoom-in; display: grid; place-items: center; }
.main-viewer img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.main-viewer:hover img { transform: scale(1.06); }

.key-attrs-box { margin-top: 20px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.key-attrs-title { background: #f1f5f9; padding: 10px 14px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--border); }
.key-attrs-grid { display: grid; grid-template-columns: 1fr 1fr; }
.key-attr-row { display: grid; grid-template-columns: 44% 56%; border-bottom: 1px solid var(--border); font-size: 13px; }
.key-attr-k { background: #f8fafc; padding: 8px 12px; color: var(--muted); font-weight: 600; }
.key-attr-v { padding: 8px 12px; color: var(--text); }

.p-title { font-size: 22px; font-weight: 800; line-height: 1.3; margin: 0 0 8px; }
.p-short-desc { font-size: 14px; color: #334155; background: #f8fafc; border-left: 3px solid var(--crimson); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 0 0 16px; }
.tier-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.tier-box strong { display: block; font-size: 20px; color: var(--crimson); }
.tier-box span { font-size: 12px; color: var(--muted); }

/* Image-Based Product Variations */
.var-section { margin: 16px 0; }
.var-label { font-size: 13px; font-weight: 700; margin-bottom: 8px; display: block; }
.var-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.var-swatch { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border: 2px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; transition: all .15s; }
.var-swatch img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.var-swatch.active { border-color: var(--crimson); background: #fff1f2; color: var(--crimson-dark); }

.buy-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.qty-input { width: 92px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-weight: 700; text-align: center; }

/* Lightbox & Inquiry Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(2, 6, 23, 0.72); display: none; place-items: center; z-index: 120; padding: 16px; }
.modal-backdrop.open { display: grid; }
.modal-card { background: #fff; border-radius: 12px; max-width: 560px; width: 100%; padding: 24px; box-shadow: var(--shadow-lg); position: relative; max-height: 92vh; overflow-y: auto; }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted); }

/* Animated lookinchina Auth Experience */
.auth-stage { min-height: 76vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(circle at 15% 20%, rgba(225, 29, 72, 0.14), transparent 45%), radial-gradient(circle at 85% 80%, rgba(245, 158, 11, 0.16), transparent 45%), #0f172a; }
.auth-card { width: 100%; max-width: 460px; background: rgba(255, 255, 255, 0.97); border-radius: 16px; padding: 32px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); animation: authSlideUp .45s cubic-bezier(.16,1,.3,1); }
@keyframes authSlideUp { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.auth-brand-anim { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.auth-pulse { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, var(--crimson), #f59e0b); color: #fff; font-weight: 900; font-size: 22px; display: grid; place-items: center; animation: pulseGlow 2.6s infinite ease-in-out; }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.45); } 50% { box-shadow: 0 0 0 12px rgba(225, 29, 72, 0); } }

/* Forms, Tables & Dashboards */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--navy-2); }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12); }

.panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th, table.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.data-table th { background: #f8fafc; font-weight: 700; color: var(--navy-2); }

.alert { padding: 12px 16px; border-radius: 8px; margin: 14px 0; font-size: 14px; font-weight: 600; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #ffe4e6; color: #9f1239; border: 1px solid #fecdd3; }

.pagination { display: flex; gap: 6px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.page-link { padding: 7px 13px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: 13px; font-weight: 600; }
.page-link.active { background: var(--crimson); color: #fff; border-color: var(--crimson); }

/* Footer */
.site-footer { background: var(--navy); color: #cbd5e1; margin-top: 48px; padding: 36px 0 20px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 24px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 14px; }
.site-footer a:hover { color: var(--amber); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .product-layout, .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .gallery-wrap { grid-template-columns: 1fr; }
  .thumb-col { flex-direction: row; order: 2; overflow-x: auto; }
  .key-attrs-grid { grid-template-columns: 1fr; }
}
