:root {
  --navy: #003087;
  --navy-dark: #001f5e;
  --yellow: #f5a623;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --mid-gray: #e0e0e0;
  --text-dark: #1a1a1a;
  --text-mid: #444;
  --green: #1f8a4c;
  --red: #c0392b;
  --shadow: 0 10px 30px rgba(0, 31, 94, 0.12);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text-dark); background: var(--white); }
a { color: inherit; text-decoration: none; }
p { line-height: 1.6; color: var(--text-mid); }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { max-width: 760px; }
.topbar { background: var(--navy-dark); color: var(--white); font-size: 14px; }
.topbar-inner, .nav-wrap, .simple-header-inner, .dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-inner { padding: 10px 0; }
.topbar-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.site-header, .simple-header { border-bottom: 1px solid var(--mid-gray); background: var(--white); }
.nav-wrap, .simple-header-inner { padding: 18px 0; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-img { height: 80px; width: auto; display: block; }
.wordmark-img { height: 60px; width: auto; display: block; }
.searchbar { flex: 1; display: flex; max-width: 470px; border: 2px solid var(--navy); border-radius: 8px; overflow: hidden; }
.searchbar input, input, select, textarea { width: 100%; padding: 14px; border: 1px solid var(--mid-gray); border-radius: 8px; font-size: 15px; font-family: inherit; }
.searchbar input { border: 0; border-radius: 0; text-align: center; }
.searchbar button, .btn, .qty-btn, .account-tabs button { border: 0; cursor: pointer; font-weight: 700; }
.searchbar button { padding: 0 18px; background: var(--yellow); }
.main-nav { display: flex; gap: 18px; font-weight: 700; flex-wrap: wrap; }
.main-nav .active { color: var(--navy); }
.hero { background: linear-gradient(125deg, rgba(0,48,135,0.96), rgba(0,31,94,0.92)), linear-gradient(90deg, #dde7ff, #ffffff); color: var(--white); padding: 64px 0; }
.hero-grid, .two-col { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 28px; align-items: center; }
.eyebrow, .catalog-label { display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.14); color: var(--white); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.catalog-label { color: var(--navy); background: rgba(0, 48, 135, 0.1); }
.hero h1, h1, h2, h3, h4 { margin-top: 0; }
.hero h1 { font-size: 48px; line-height: 1.1; margin-bottom: 16px; }
.hero p { color: rgba(255,255,255,0.88); font-size: 18px; }
.hero-panel, .panel, .auth-card { background: var(--white); color: var(--text-dark); border-radius: 16px; box-shadow: var(--shadow); }
.auth-page { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; background: var(--light-bg); padding: 40px 16px; }
.auth-card { width: 100%; max-width: 440px; padding: 40px 36px; }
.auth-card.wide { max-width: 620px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card p { color: var(--text-muted); margin-bottom: 24px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.auth-card input[type=email], .auth-card input[type=password], .auth-card input[type=text], .auth-card select { width: 100%; padding: 12px 14px; border: 1px solid var(--mid-gray); border-radius: 8px; font-size: 15px; font-family: inherit; box-sizing: border-box; }
.auth-card .btn.full { width: 100%; margin-top: 6px; padding: 14px; font-size: 1rem; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--blue-primary); font-size: .9rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.hero-panel { padding: 24px; display: grid; gap: 16px; }
.hero-stat { padding: 18px; border: 1px solid var(--mid-gray); border-radius: 12px; }
.hero-stat strong { display: block; color: var(--navy); font-size: 24px; margin-bottom: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 20px; border-radius: 8px; }
.btn-primary { background: var(--yellow); color: var(--text-dark); }
.btn-secondary { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.btn.small { padding: 10px 14px; font-size: 14px; }
.full { width: 100%; }
.disabled { pointer-events: none; opacity: 0.5; }
.hero-actions, .checkout-actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.trust-bar { background: var(--yellow); color: var(--navy-dark); font-weight: 700; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 16px 0; text-align: center; }
.section { padding: 60px 0; }
.section-light { background: var(--light-gray); }
.section-head { margin-bottom: 24px; }
.category-grid, .product-strip, .catalog-grid, .related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card, .product-card, .catalog-card, .related-card, .order-card { background: var(--white); border: 1px solid var(--mid-gray); border-radius: 14px; box-shadow: 0 8px 18px rgba(0,0,0,0.04); overflow: hidden; text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; cursor: pointer; }
.category-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.category-image, .catalog-card-image { width: 100%; height: 220px; object-fit: cover; display: block; }
.category-card-body, .catalog-card-body, .related-card-body { padding: 18px; }
.site-footer { background: var(--navy-dark); color: var(--white); padding-top: 40px; }
.footer-grid, .footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-grid a, .footer-grid p, .footer-bottom, .footer-inner a, .footer-inner p { color: rgba(255,255,255,0.82); display: block; margin: 8px 0; }
.footer-bottom { padding: 18px 0 28px; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 24px; text-align: center; }
label { display: block; font-weight: 700; margin-bottom: 14px; }
label input, label select, label textarea { margin-top: 8px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--navy); font-weight: 700; }
.success-box, .error-box { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 700; }
.success-box { background: #eaf8ef; color: var(--green); }
.error-box { background: #fff0ee; color: var(--red); }
.panel { padding: 32px; }
.hidden { display: none !important; }
.catalog-hero { padding-bottom: 28px; }
.catalog-toolbar { margin-bottom: 24px; }
.catalog-toolbar-top { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.catalog-controls { display: grid; gap: 18px; }
.category-tabs, .pagination { display: flex; flex-wrap: wrap; gap: 10px; }
.tab-btn, .page-btn { border: 1px solid var(--mid-gray); background: var(--white); color: var(--text-dark); border-radius: 999px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.tab-btn.active, .page-btn.active, .account-tabs button.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.catalog-card-meta, .summary-line, .order-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.catalog-card-category { color: var(--navy); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.catalog-card-price, .product-price, .cart-line-total { color: var(--navy-dark); font-weight: 700; }
.catalog-card-body h3 { font-size: 20px; margin-bottom: 10px; }
.catalog-card-body p { min-height: 72px; }
.catalog-card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.product-card-link { cursor: pointer; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.cart-badge { min-width: 22px; height: 22px; border-radius: 999px; background: #d32f2f; color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; padding: 0 6px; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
.cart-items { display: grid; gap: 18px; }
.cart-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; padding: 20px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow); }
.cart-item-media img { width: 120px; height: 120px; object-fit: contain; background: #f8f9fb; border-radius: 12px; padding: 12px; }
.cart-item-main h3 { margin-bottom: 6px; }
.cart-item-main p { margin: 0 0 14px; }
.cart-qty-row { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.qty-btn { width: 34px; height: 34px; border-radius: 8px; background: var(--navy); color: var(--white); }
.qty-value { min-width: 24px; text-align: center; font-weight: 700; }
.text-link { background: transparent; padding: 0; color: var(--navy); }
.text-link.danger { color: var(--red); }
.cart-item-side { text-align: right; min-width: 120px; }
.cart-item-price { color: #667; margin-bottom: 8px; }
.cart-summary-panel { position: sticky; top: 20px; }
.summary-line { padding: 12px 0; border-bottom: 1px solid var(--mid-gray); }
.summary-line.total { font-size: 20px; border-bottom: 0; padding-top: 18px; }
.review-block { padding: 24px; border: 1px solid var(--mid-gray); border-radius: 14px; background: #fbfcff; margin-bottom: 18px; }
.review-line-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--mid-gray); }
.review-line-item:last-child { border-bottom: 0; }
.confirmation-panel { text-align: center; }
.confirmation-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 999px; background: #eaf8ef; color: var(--green); display: grid; place-items: center; font-size: 36px; font-weight: 700; }
.confirmation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0; text-align: left; }
.confirmation-grid div, .account-info-card div { padding: 18px; border: 1px solid var(--mid-gray); border-radius: 12px; background: #fbfcff; }
.confirmation-grid span, .account-info-card span { display: block; color: #667; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.confirmation-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.account-tabs { display: flex; gap: 10px; margin-bottom: 22px; }
.account-tabs button { padding: 12px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--mid-gray); }
.account-info-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.order-card { padding: 24px; margin-bottom: 18px; }
.order-card-head h3 { margin-bottom: 6px; }
.order-card-body details { margin-top: 12px; }
.order-detail-list { margin-top: 10px; }
.product-detail { padding: 48px 0 80px; }
.loading-state { text-align: center; padding: 80px 0; color: #888; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-image-wrap { background: #f8f9fb; border-radius: 12px; padding: 40px; display: flex; align-items: center; justify-content: center; min-height: 360px; }
.product-image-wrap img { max-width: 100%; max-height: 320px; object-fit: contain; }
.product-badge { display: inline-block; background: #e8f0fe; color: #003087; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px; }
.product-title { font-size: 28px; font-weight: 700; color: #1a1a2e; margin: 0 0 8px; line-height: 1.3; }
.product-sku { color: #888; font-size: 14px; margin-bottom: 24px; }
.product-price { font-size: 36px; margin-bottom: 8px; }
.product-price-note { font-size: 13px; color: #888; margin-bottom: 28px; }
.product-divider { border: none; border-top: 1px solid #e8ecf0; margin: 28px 0; }
.product-desc { font-size: 16px; color: #444; line-height: 1.7; margin-bottom: 28px; }
.product-specs { background: #f8f9fb; border-radius: 10px; padding: 20px 24px; margin-bottom: 28px; }
.product-specs h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; margin: 0 0 14px; }
.product-specs table { width: 100%; border-collapse: collapse; }
.product-specs td { padding: 8px 0; font-size: 15px; color: #333; border-bottom: 1px solid #e8ecf0; }
.product-specs td:first-child { font-weight: 600; width: 140px; color: #1a1a2e; }
.product-specs tr:last-child td { border-bottom: none; }
.product-purchase-box { background: #f8fbff; border: 1px solid #dce6f7; border-radius: 14px; padding: 20px; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; }
.product-actions .btn { flex: 1; min-width: 160px; }
.qty-label { margin-bottom: 8px; }
.qty-input { max-width: 120px; }
.in-stock { color: #1a7f37; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.in-stock::before { content: '✓ '; }
.related-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.related-card img { width: 100%; height: 140px; object-fit: contain; background: #f8f9fb; padding: 12px; }
.related-card-body h4 { font-size: 13px; font-weight: 600; color: #1a1a2e; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card-body .price { font-size: 14px; font-weight: 700; color: #003087; }
@media (max-width: 980px) {
  .nav-wrap, .topbar-inner, .simple-header-inner, .dashboard-head, .catalog-toolbar-top { flex-direction: column; align-items: stretch; }
  .hero-grid, .two-col, .category-grid, .product-strip, .footer-grid, .footer-inner, .trust-grid, .catalog-grid, .cart-layout, .checkout-layout, .product-detail-grid, .related-grid, .account-info-card { grid-template-columns: 1fr 1fr; }
  .searchbar { max-width: none; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 34px; }
  .hero-grid, .two-col, .category-grid, .product-strip, .footer-grid, .footer-inner, .trust-grid, .form-grid, .catalog-grid, .cart-layout, .checkout-layout, .product-detail-grid, .related-grid, .confirmation-grid, .account-info-card { grid-template-columns: 1fr; }
  .main-nav, .topbar-links, .hero-actions, .checkout-actions, .confirmation-actions { flex-wrap: wrap; }
  .cart-item { grid-template-columns: 1fr; }
  .cart-item-side { text-align: left; }
}

/* ── Category Browse Layout ─────────────────────────────────────────── */
.browse-category-section { margin-bottom: 48px; }
.browse-category-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; border-bottom: 2px solid var(--mid-gray); padding-bottom: 12px; }
.browse-category-header h2 { font-size: 20px; font-weight: 700; color: var(--navy-dark); margin: 0; }
.browse-see-all { font-size: 14px; font-weight: 600; color: var(--blue-primary); text-decoration: none; white-space: nowrap; }
.browse-see-all:hover { text-decoration: underline; }
.browse-product-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.browse-card { background: #fff; border: 1px solid #e8ecf0; border-radius: 10px; overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.browse-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.browse-card img { width: 100%; height: 160px; object-fit: contain; background: #f8f9fb; padding: 12px; box-sizing: border-box; display: block; }
.browse-card-body { padding: 12px 14px; }
.browse-card-name { font-size: 13px; font-weight: 600; color: #1a1a2e; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.browse-card-price { font-size: 14px; font-weight: 700; color: var(--blue-primary); }
@media (max-width: 900px) { .browse-product-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .browse-product-row { grid-template-columns: repeat(2, 1fr); } .browse-category-header { flex-direction: column; gap: 6px; } }

/* Status Pills */
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; text-transform: capitalize; letter-spacing: .02em; }
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cfe2ff; color: #084298; }
.status-shipped { background: #d1e7dd; color: #0a3622; }
.status-delivered { background: #d1e7dd; color: #0a3622; }
.status-cancelled { background: #f8d7da; color: #842029; }
.status-approved { background: #d1e7dd; color: #0a3622; }
.status-denied { background: #f8d7da; color: #842029; }
.status-order.received { background: #cfe2ff; color: #084298; }

/* Auth nav spacing */
#authNavSlot { display: contents; }
#authNavSlot a { margin-left: 0; }

/* Footer brand - CSS text replaces blurry wordmark PNG */


/* Nav header brand - crisp CSS text */

