/* MakeInIndiaOEM – global styles (variables, layout, components) */
:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --accent: #0ea5e9;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-soft: #e2e8f0;
    --radius-lg: 14px;
    --radius-md: 10px;
    --shadow-soft: 0 16px 28px rgba(15, 23, 42, 0.08);
    --shadow-light: 0 8px 18px rgba(15, 23, 42, 0.06);
    --max-width: 1280px;
    --transition-fast: 0.18s ease-out;
    --transition-med: 0.25s ease-out;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      sans-serif;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: var(--font-sans);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.6;
  }
  
  /* Topbar */
  
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 50;
  }
  
  .topbar-left,
  .topbar-center,
  .topbar-right {
    display: flex;
    align-items: center;
  }
  
  .topbar-left {
    gap: 12px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff7ed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #111827;
    font-size: 18px;
    box-shadow: 0 0 0 1px #fed7aa;
    overflow: hidden;
  }
  .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .logo-text {
    display: flex;
    flex-direction: column;
  }
  
  .logo-title {
    font-weight: 700;
    font-size: 16px;
  }
  
  .logo-subtitle {
    font-size: 11px;
    color: #94a3b8;
  }
  
  /* Search bar */
  
  .topbar-center {
    flex: 1;
    justify-content: center;
    padding: 0 16px;
  }
  
  .search-bar {
    display: flex;
    width: 100%;
    max-width: 580px;
    background: #ffffff;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
  }
  
  .search-category {
    border: none;
    background: #e5e7eb;
    padding: 8px 12px;
    font-size: 13px;
    color: #111827;
    border-right: 1px solid #d1d5db;
    outline: none;
  }
  
  .search-bar input {
    flex: 1;
    border: none;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    background: transparent;
  }
  
  .search-bar button {
    background: var(--accent);
    color: #f9fafb;
    border: none;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-fast), transform var(--transition-fast);
  }
  
  .search-bar button:hover {
    background: #005bd1;
    transform: translateY(-1px);
  }
  .search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.16);
    overflow: hidden;
    z-index: 999;
  }
  .search-suggest .ss-section { padding: 10px 12px 6px; font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
  .search-suggest a.ss-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-main);
    border-top: 1px solid #f1f5f9;
  }
  .search-suggest a.ss-item:hover, .search-suggest a.ss-item.active { background: #f8fafc; }
  .search-suggest .ss-thumb { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
  .search-suggest .ss-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .search-suggest .ss-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search-suggest .ss-meta { font-size: 12px; color: var(--text-muted); }
  .search-cat-strip { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
  .search-cat-pill { display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:999px; border:1px solid var(--border-soft); background:#fff; text-decoration:none; color: var(--text-main); font-size:12px; box-shadow: 0 10px 18px rgba(0,0,0,0.06); transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .search-cat-pill:hover { transform: translateY(-1px); box-shadow: 0 16px 24px rgba(0,0,0,0.10); }
  .search-cat-pill img { width:18px; height:18px; border-radius:6px; object-fit:cover; }
  .search-cat-pill .sci { width:18px; display:inline-flex; justify-content:center; }

  .pagination { margin-top: 14px; display:flex; gap:6px; flex-wrap:wrap; }
  .page-link { min-width:30px; padding:6px 10px; border-radius:999px; border:1px solid var(--border-soft); text-align:center; font-size:12px; text-decoration:none; color:var(--text-main); background:#fff; }
  .page-link.active { background:#2563eb; color:#fff; border-color:#2563eb; }
  .page-link:hover { box-shadow:0 10px 18px rgba(0,0,0,0.08); }
  
  /* Topbar right */
  
  .topbar-right {
    gap: 18px;
  }
  
  .topbar-item {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    cursor: pointer;
    color: #334155;
  }
  
  .topbar-item .icon {
    font-size: 16px;
  }
  
  .topbar-item .value {
    font-weight: 600;
    font-size: 12px;
  }
  
  /* Main Nav */
  
  .main-nav {
    background: #ffffff;
    color: #334155;
    border-bottom: 1px solid var(--border-soft);
  }
  
  .main-nav ul {
    margin: 0 auto;
    padding: 6px 24px;
    max-width: var(--max-width);
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  
  .main-nav ul::-webkit-scrollbar {
    display: none;
  }
  
  .main-nav a.nav-item {
    text-decoration: none;
    color: inherit;
  }
  
  .nav-item {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast),
      transform var(--transition-fast);
    display: inline-block;
  }
  
  .nav-all {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .nav-item:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
  }
  
  .nav-item.active {
    background: #e0f2fe;
    color: #075985;
  }
  
  .nav-item.highlight {
    background: var(--primary);
    color: #111827;
    font-weight: 600;
  }
  
  /* Layout sections */
  
  .hero-section {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 18px;
    max-width: var(--max-width);
    margin: 18px auto 0;
    padding: 0 16px 18px;
  }
  
  /* Hero Banner */
  
  .hero-banner {
    position: relative;
    background: radial-gradient(circle at top left, #1f2937, #020617 60%);
    border-radius: var(--radius-lg);
    padding: 20px 20px 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    min-height: 260px;
  }
  
  .hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    gap: 20px;
    align-items: stretch;
  }
  
  .hero-slide.active {
    display: grid;
  }
  
  .hero-content h1 {
    margin: 0 0 10px;
    color: #f9fafb;
    font-size: 32px;
    letter-spacing: 0.01em;
  }
  
  .hero-content p {
    margin: 0 0 16px;
    color: #e5e7eb;
    font-size: 15px;
  }
  
  .hero-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
  }
  
  .hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #d1d5db;
    font-size: 14px;
  }
  
  .hero-bullets li + li {
    margin-top: 4px;
  }
  
  .hero-image {
    position: relative;
    border-radius: 20px;
    padding: 16px;
    color: #f9fafb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .gradient-bg {
    background: linear-gradient(135deg, #0ea5e9, #6366f1, #ec4899);
  }
  
  .gradient-bg-2 {
    background: linear-gradient(135deg, #22c55e, #f97316, #facc15);
  }

  .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e5e7eb;
    margin-bottom: 10px;
  }
  
  .hero-badge {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.12);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .hero-stats {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  
  .hero-stats div {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #e5e7eb;
  }
  
  .hero-stats strong {
    font-size: 20px;
    color: #f9fafb;
  }
  
  .hero-dots {
    position: absolute;
    right: 16px;
    bottom: 10px;
    display: flex;
    gap: 6px;
  }
  
  .hero-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: transparent;
    cursor: pointer;
    transition: background var(--transition-fast), width var(--transition-fast);
  }
  
  .hero-dots .dot.active {
    width: 22px;
    background: #f9fafb;
  }
  
  /* Buttons */
  
  .btn {
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 7px 16px;
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast),
      background var(--transition-fast), color var(--transition-fast);
  }
  
  .btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #f1f5f9;
    box-shadow: 0 8px 18px rgba(249,115,22,0.24);
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  
  .btn.primary:hover {
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(249,115,22,0.3);
  }
  .btn.danger {
    background: #dc2626;
    color: #fff;
  }
  .btn.danger:hover {
    background: #b91c1c;
  }
  
  .btn.ghost {
    background: transparent;
    color: #f9fafb;
    border: 1px solid rgba(148, 163, 184, 0.7);
  }
  
  .btn.ghost:hover {
    background: rgba(15, 23, 42, 0.5);
  }
  
  .btn.small {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .btn.full-width {
    width: 100%;
  }
  
  /* Side deals / RFQ */
  
  .side-deals {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 16px 16px 18px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .side-deals h3 {
    margin: 0;
    font-size: 16px;
  }
  
  .side-deals h4 {
    margin: 8px 0 0;
    font-size: 14px;
  }
  
  .side-deals p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
  }
  
  .side-deals input,
  .side-deals textarea {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
    resize: vertical;
    font-family: inherit;
  }
  
  .side-deals input:focus,
  .side-deals textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
  }
  
  .divider {
    border-bottom: 1px dashed var(--border-soft);
    margin: 6px 0;
  }
  
  .trending-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--text-main);
  }
  
  .trending-list li + li {
    margin-top: 4px;
  }
  
  /* Category tiles */
  
  .category-tiles {
    max-width: var(--max-width);
    margin: 10px auto 0;
    padding: 0 16px 16px;
  }
  
  .category-tiles h2 {
    margin: 0 0 10px;
    font-size: 20px;
  }
  
  .tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
  }
  
  .tile {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 12px 12px 14px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform var(--transition-med), box-shadow var(--transition-med),
      border-color var(--transition-med), background var(--transition-med);
  }
  
  .tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(37, 99, 235, 0.45);
  }
  
  .tile-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #eff6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }
  
  .tile h3 {
    margin: 4px 0 0;
    font-size: 14px;
  }
  
  .tile p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
  }
  
  .tile-link {
    margin-top: 4px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
  }

  /* Home: hero banners + trust + highlight + supplier + RFQ + testimonials */
  .home-banner-strip { max-width: var(--max-width); margin: 10px auto 6px; padding: 0 16px; }
  .home-banner-slider { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid rgba(148,163,184,0.35); background: radial-gradient(circle at 0 0, rgba(59,130,246,0.35), rgba(15,23,42,1)); }
  .home-banner-track { position: relative; width: 100%; }
  .home-banner-slide { display: none; position: relative; }
  .home-banner-slide.is-active { display: block; }
  .home-banner-card { position: relative; overflow: hidden; border-radius: 18px; display: block; text-decoration: none; }
  .home-banner-img-wrap { width: 100%; }
  .home-banner-img-wrap img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1367 / 400; display:block; }
  .home-banner-caption { position:absolute; left:16px; bottom:14px; padding:6px 12px; border-radius:999px; background:rgba(15,23,42,0.84); color:#e5e7eb; font-size:12px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; }
  .home-banner-dots { position:absolute; right:14px; bottom:12px; display:flex; gap:6px; }
  .home-banner-dot { width:8px; height:8px; border-radius:999px; border:1px solid rgba(148,163,184,0.8); background:rgba(15,23,42,0.5); padding:0; cursor:pointer; }
  .home-banner-dot.is-active { background:#f97316; border-color:#fed7aa; }
  .home-banner-nav { position:absolute; inset:0; display:flex; align-items:center; justify-content:space-between; pointer-events:none; padding:0 10px; }
  .home-banner-arrow { pointer-events:auto; width:32px; height:32px; border-radius:999px; border:1px solid rgba(148,163,184,0.75); background:rgba(15,23,42,0.75); color:#e5e7eb; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:16px; }
  .home-banner-arrow:hover { background:rgba(15,23,42,0.95); }

  .trust-strip { max-width: var(--max-width); margin: 14px auto 14px; padding: 0 16px; }
  .trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: #0b1220; border: 1px solid rgba(148,163,184,0.25); border-radius: 16px; padding: 12px; }
  .trust-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 14px; background: rgba(255,255,255,0.04); }
  .trust-ic { width: 34px; height: 34px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); flex-shrink: 0; }
  .trust-item strong { display:block; font-size: 13px; color: #e5e7eb; }
  .trust-item span { display:block; font-size: 12px; color: rgba(226,232,240,0.8); margin-top: 2px; }

  .highlight-grid { max-width: var(--max-width); margin: 0 auto 12px; padding: 0 16px; }
  .highlight-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .highlight-card { text-decoration: none; color: var(--text-main); background: #fff; border: 1px solid var(--border-soft); border-radius: 16px; padding: 14px; display: grid; gap: 6px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .highlight-card:hover { transform: translateY(-2px); box-shadow: 0 18px 30px rgba(0,0,0,0.12); }
  .hc-ic { width: 42px; height: 42px; border-radius: 14px; background: #f1f5f9; display:flex; align-items:center; justify-content:center; font-size: 20px; }
  .hc-title { font-weight: 800; }
  .hc-sub { color: var(--text-muted); font-size: 12px; }

  .supplier-spotlight { max-width: var(--max-width); margin: 0 auto 12px; padding: 0 16px; }
  .supplier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .supplier-card { background: #fff; border: 1px solid var(--border-soft); border-radius: 16px; padding: 14px; display: grid; gap: 6px; }
  .supplier-badge { align-self: start; justify-self: start; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; border: 1px solid #e2e8f0; color: #0f172a; background: #f8fafc; }
  .supplier-badge.verified { border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.12); color: #065f46; }
  .supplier-title { font-weight: 900; }
  .supplier-meta { color: var(--text-muted); font-size: 12px; }
  .supplier-actions { display:flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }

  .rfq-how { max-width: var(--max-width); margin: 0 auto 12px; padding: 0 16px; }
  .rfq-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .rfq-step { background: #fff; border: 1px solid var(--border-soft); border-radius: 16px; padding: 14px; display: grid; gap: 6px; }
  .rfq-n { width: 34px; height: 34px; border-radius: 12px; background: rgba(59,130,246,0.12); color: #1d4ed8; display:flex; align-items:center; justify-content:center; font-weight: 900; }
  .rfq-step strong { font-size: 14px; }
  .rfq-step span { color: var(--text-muted); font-size: 12px; }

  .testimonials { max-width: var(--max-width); margin: 0 auto 18px; padding: 0 16px; }
  .testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .t-card { background: #0b1220; border: 1px solid rgba(148,163,184,0.25); border-radius: 16px; padding: 16px; color: #e2e8f0; display: grid; gap: 10px; }
  .t-card span { color: rgba(226,232,240,0.75); font-size: 12px; }

  .categories-all { display: grid; gap: 12px; }
  .cat-block { background: #fff; border: 1px solid var(--border-soft); border-radius: 16px; padding: 14px; box-shadow: 0 16px 26px rgba(0,0,0,0.06); }
  .cat-block-head { display:flex; align-items:center; justify-content: space-between; gap: 10px; }
  .cat-block-title { display:flex; align-items:center; gap: 10px; text-decoration:none; color: var(--text-main); font-weight: 900; }
  .cat-block-title img { width: 28px; height: 28px; border-radius: 10px; object-fit: cover; }
  .cat-ic { width: 28px; height: 28px; border-radius: 10px; background: #f1f5f9; display:flex; align-items:center; justify-content:center; }
  .cat-links { display:flex; flex-wrap:wrap; gap: 10px; margin-top: 10px; }
  .cat-link { font-size: 12px; padding: 7px 10px; border-radius: 999px; background: #f8fafc; border: 1px solid #e2e8f0; color: #0f172a; text-decoration:none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .cat-link:hover { transform: translateY(-1px); box-shadow: 0 14px 18px rgba(0,0,0,0.08); }
  
  /* Products section */
  
  .products-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px 18px;
  }
  
  .section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
  }
  
  .section-header h2 {
    margin: 0;
    font-size: 20px;
  }
  
  .section-subtitle {
    font-size: 12px;
    color: var(--text-muted);
  }
  
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
  }
  
  .product-card {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 10px 10px 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 280px;
    transition: transform var(--transition-med), box-shadow var(--transition-med),
      border-color var(--transition-med), background var(--transition-med);
  }
  
  .product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(148, 163, 184, 0.7);
  }
  
  .product-card .card-img-wrap {
    max-height: 200px;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 3 / 2;
    background: #f3f4f6;
  }
  
  .product-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    max-height: 200px;
    object-fit: cover;
  }
  
  .product-card img {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    max-height: 200px;
  }
  
  .product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: #f9fafb;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  
  .product-tag.hot {
    background: linear-gradient(135deg, #f97316, #ef4444);
  }
  
  .product-card h3 {
    margin: 0;
    font-size: 14px;
  }
  
  .product-card .supplier {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
  }
  
  .product-card .price {
    margin: 0;
    font-size: 13px;
    color: #16a34a;
    font-weight: 600;
  }
  
  .product-card .moq {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--text-muted);
  }
  
  /* Supplier strip */
  
  .supplier-strip {
    max-width: var(--max-width);
    margin: 0 auto 18px;
    padding: 0 16px 18px;
  }
  
  .supplier-strip h2 {
    margin: 0 0 8px;
    font-size: 18px;
  }
  
  .supplier-hubs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
  }
  
  .hub-card {
    background: linear-gradient(135deg, #0f172a, #1f2937);
    color: #f9fafb;
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(148, 163, 184, 0.4);
  }
  
  .hub-card h3 {
    margin: 0 0 2px;
    font-size: 14px;
  }
  
  .hub-card p {
    margin: 0;
    font-size: 12px;
    color: #e5e7eb;
  }
  
  .hub-card span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #cbd5f5;
  }
  
  /* Footer */
  
  .footer {
    background: #020617;
    color: #e5e7eb;
    padding: 18px 24px 14px;
    margin-top: 10px;
  }
  
  .footer-cols {
    max-width: var(--max-width);
    margin: 0 auto 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }
  
  .footer-col h4 {
    margin: 0 0 5px;
    font-size: 14px;
  }
  
  .footer-col a {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
    margin: 2px 0;
  }
  
  .footer-col a:hover {
    color: #f9fafb;
  }
  
  .footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    color: #6b7280;
  }
  
/* Admin / Seller panel layout – common dark theme #020617 */

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  background: #020617;
  color: #f1f5f9;
}
.admin-shell.panel-dark .admin-main,
.admin-main.panel-dark,
.panel-main {
  background: #020617 !important;
  color: #f1f5f9 !important;
}
.panel-main .admin-main-header h1,
.panel-main .admin-card-header h2,
.panel-main .admin-card-header h3 { color: #f1f5f9 !important; }
.panel-main .admin-main-header p,
.panel-main .admin-card-sub,
.panel-main .panel-breadcrumb { color: #94a3b8 !important; }
.panel-main .panel-breadcrumb a { color: #38bdf8; }
.panel-main .admin-card,
.panel-main .admin-card-light {
  background: #0f172a !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
.panel-main .admin-table thead { background: #1e293b !important; color: #94a3b8 !important; }
.panel-main .admin-table th { color: #94a3b8 !important; }
.panel-main .admin-table td { color: #e2e8f0 !important; border-color: #1e293b !important; }
.panel-main .admin-table tbody tr:hover { background: #1e293b !important; }
.panel-main .auth-field label,
.panel-main .form-group label { color: #e2e8f0 !important; }
.panel-main .auth-field input,
.panel-main .auth-field select,
.panel-main .auth-field textarea,
.panel-main .form-group input,
.panel-main .form-group select,
.panel-main .form-group textarea {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
.panel-main .auth-field input::placeholder,
.panel-main .auth-field textarea::placeholder { color: #64748b; }
.panel-main .admin-search-input,
.panel-main .panel-filter-row input,
.panel-main .panel-filter-row select {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
.panel-main .admin-stat-card-title,
.panel-main .admin-stat-card-meta { color: #94a3b8 !important; }
.panel-main .admin-stat-card-value { color: #f1f5f9 !important; }
.panel-main .seller-product-section { background: #1e293b !important; border-color: #334155 !important; }
.panel-main .seller-product-section-head h3 { color: #e2e8f0 !important; }
.panel-main .seller-product-section-head p { color: #94a3b8 !important; }
.panel-main .muted { color: #94a3b8 !important; }
.panel-main .btn.ghost { color: #94a3b8; border-color: #475569; }
.panel-main .btn.ghost:hover { background: #1e293b; color: #f1f5f9; }
.panel-main .auth-alert-success { background: #14532d; color: #bbf7d0; border-color: #166534; }
.panel-main .auth-alert-error { background: #7f1d1d; color: #fecaca; border-color: #991b1b; }
.panel-main .pill-btn { border-color: #475569; color: #e2e8f0; }
.panel-main .pill-btn:hover { background: #1e293b; color: #f1f5f9; }
.panel-main .pill-btn-danger { border-color: #f87171; color: #fecaca; }
.panel-main .badge-soft { background: #334155; color: #e2e8f0; }
.panel-main .admin-two-column .admin-card-light { background: #0f172a !important; color: #e2e8f0 !important; }
.panel-main .admin-two-column .admin-card-light ul { color: #94a3b8; }
.panel-main .admin-two-column .admin-card-light strong { color: #f1f5f9; }
/* Chart bars for analytics */
.analytics-bar-wrap { background: #1e293b; border-radius: 8px; height: 24px; overflow: hidden; margin: 8px 0; }
.analytics-bar-fill { height: 100%; border-radius: 8px; min-width: 4px; transition: width 0.4s ease; }
.analytics-detail-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.analytics-detail-table th, .analytics-detail-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #1e293b; color: #e2e8f0; }
.analytics-detail-table th { color: #94a3b8; font-weight: 600; }
.analytics-detail-table tr:hover { background: #1e293b; }
.analytics-card { background: #0f172a; border: 1px solid #1e293b; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.analytics-card h3 { margin: 0 0 12px; font-size: 16px; color: #f1f5f9; }
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.analytics-kpi { background: #1e293b; border-radius: 10px; padding: 14px; text-align: center; }
.analytics-kpi .val { font-size: 22px; font-weight: 700; color: #f1f5f9; }
.analytics-kpi .lbl { font-size: 12px; color: #94a3b8; margin-top: 4px; }

/* Subtle animations */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.btn { transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 24px rgba(0,0,0,0.12); }
.product-card, .tile, .hub-card, .highlight-card, .supplier-card { transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 22px 34px rgba(0,0,0,0.14); }

.admin-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--border-soft);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #334155;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-brand .logo-icon {
  box-shadow: none;
}

.admin-brand-title {
  font-size: 15px;
  font-weight: 600;
}

.admin-brand-sub {
  font-size: 11px;
  color: #64748b;
}

.admin-nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

.admin-nav-link span.icon {
  font-size: 16px;
}

.admin-nav-link:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.admin-nav-link.active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #f9fafb;
}

.admin-sidebar-footer {
  margin-top: auto;
  font-size: 11px;
  color: #94a3b8;
}

.admin-main {
  background: #020617;
  padding: 16px 18px 22px;
  color: #f1f5f9;
}

.admin-main-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.admin-main-header h1 {
  margin: 0;
  font-size: 22px;
}

.admin-main-header p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #64748b;
}

.admin-main-header-right {
  text-align: right;
  font-size: 12px;
  color: #9ca3af;
}

.admin-main-header-right a {
  color: #f97316;
  text-decoration: none;
}

.admin-main-header-right a:hover {
  text-decoration: underline;
}

.admin-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  padding: 14px 14px 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.admin-card-light {
  background: #ffffff;
  color: #111827;
  border-color: #e5e7eb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.15);
}

/* Seller product form layout */
.seller-product-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 16px;
  align-items: flex-start;
  margin-top: 8px;
}

.seller-product-section {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px dashed #e5e7eb;
}

.seller-product-section-head h3 {
  margin: 0;
  font-size: 13px;
}

.seller-product-section-head p {
  margin: 2px 0 6px;
  font-size: 11px;
  color: #9ca3af;
}

.seller-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 12px;
}

.seller-product-actions {
  grid-column: 1 / -1;
  text-align: right;
  margin-top: 4px;
}

/* Product technical specs – multiple rows with Add */
.auth-field-full { grid-column: 1 / -1; }
.product-spec-rows { display: flex; flex-direction: column; gap: 8px; }
.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}
.spec-row input[type="text"] { min-width: 0; }
.spec-row .spec-row-remove { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 560px) {
  .spec-row { grid-template-columns: 1fr; }
  .spec-row .spec-row-remove { justify-self: start; }
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.admin-card-header h2,
.admin-card-header h3 {
  margin: 0;
  font-size: 15px;
}

.admin-card-sub {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-stat-card-title {
  font-size: 12px;
  color: #9ca3af;
}

.admin-stat-card-value {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
}

.admin-stat-card-meta {
  margin-top: 6px;
  font-size: 11px;
  color: #9ca3af;
}

.admin-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 14px;
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    border-right: none;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .admin-nav-section-title,
  .admin-sidebar-footer {
    display: none;
  }

  .admin-two-column {
    grid-template-columns: 1fr;
  }
}

/* Admin tables & pills */

.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table thead {
  background: #f3f4f6;
}

.admin-card-light .admin-table thead {
  background: #f3f4f6;
}

.admin-table th,
.admin-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.admin-card-light .admin-table th,
.admin-card-light .admin-table td {
  border-bottom-color: #e5e7eb;
}

.admin-table th {
  font-weight: 600;
  font-size: 11px;
  color: #6b7280;
}

.admin-card-light .admin-table th {
  color: #6b7280;
}

.admin-table tbody tr:hover {
  background: #f9fafb;
}

.admin-card-light .admin-table tbody tr:hover {
  background: #f9fafb;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-soft {
  background: rgba(148, 163, 184, 0.18);
  color: #0f172a;
}

.badge-success {
  background: rgba(34, 197, 94, 0.9);
  color: #ffffff;
}

.badge-warning {
  background: rgba(250, 204, 21, 0.18);
  color: #facc15;
}

.badge-danger {
  background: rgba(248, 113, 113, 0.2);
  color: #fecaca;
}

.pill-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  color: inherit;
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast);
}

.pill-btn:hover {
  background: rgba(148, 163, 184, 0.14);
  transform: translateY(-1px);
}

.pill-btn-danger {
  border-color: rgba(248, 113, 113, 0.8);
  color: #fecaca;
}

.pill-btn-danger:hover {
  background: rgba(248, 113, 113, 0.25);
}

.pill-btn-small {
  font-size: 10px;
  padding: 3px 7px;
}

.admin-search-input {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #020617;
  padding: 6px 10px;
  font-size: 12px;
  color: #e5e7eb;
  outline: none;
}

.admin-card-light .admin-search-input {
  background: #f9fafb;
  color: #111827;
}

.admin-search-input::placeholder {
  color: #9ca3af;
}

.admin-search-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

/* Panel design: better visibility, readable text (Admin & Seller) */
.panel-sidebar .admin-brand-title { font-size: 16px; }
.panel-sidebar .admin-brand-sub { font-size: 12px; color: #94a3b8; }
.panel-sidebar .admin-nav-section-title { font-size: 12px; color: #94a3b8; }
.panel-sidebar .admin-nav-link { font-size: 14px; padding: 10px 12px; }
.panel-sidebar .admin-nav-link span.icon { font-size: 18px; }
.panel-sidebar .admin-sidebar-footer { font-size: 13px; padding-top: 12px; border-top: 1px solid rgba(148,163,184,0.3); }
.panel-user-name { font-weight: 600; color: #e2e8f0; }
.panel-logout { color: #f97316; text-decoration: none; margin-left: 6px; }
.panel-logout:hover { text-decoration: underline; }

.panel-nav-count {
  display: inline-block;
  min-width: 20px;
  padding: 2px 6px;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  background: #f97316;
  color: #fff;
  border-radius: 10px;
}
.panel-sidebar .admin-nav-link { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.panel-sidebar .admin-nav-link .panel-nav-count { margin-left: 4px; }

.panel-main .admin-main-header h1 { font-size: 26px; font-weight: 700; color: #0f172a; }
.panel-main .admin-main-header p { font-size: 14px; color: #475569; line-height: 1.5; }
.panel-main .admin-card-header h2,
.panel-main .admin-card-header h3 { font-size: 17px; font-weight: 600; color: #0f172a; }
.panel-main .admin-card-sub { font-size: 13px; color: #64748b; }
.panel-main .admin-table { font-size: 14px; }
.panel-main .admin-table th { font-size: 13px; font-weight: 600; color: #334155; padding: 12px 10px; }
.panel-main .admin-table td { padding: 12px 10px; color: #1e293b; }
.panel-main .admin-stat-card-title { font-size: 13px; color: #64748b; }
.panel-main .admin-stat-card-value { font-size: 24px; font-weight: 700; color: #0f172a; }
.panel-main .auth-field label,
.panel-main .form-group label { font-size: 14px; font-weight: 500; color: #334155; }
.panel-main .auth-field input,
.panel-main .auth-field select,
.panel-main .auth-field textarea,
.panel-main .form-group input,
.panel-main .form-group select,
.panel-main .form-group textarea { font-size: 14px; }
.panel-main .pill-btn { font-size: 12px; padding: 6px 12px; }
.panel-main .pill-btn-small { font-size: 11px; padding: 5px 10px; }
.panel-main .badge { font-size: 11px; padding: 4px 9px; }
.panel-main .admin-search-input { font-size: 14px; padding: 10px 14px; }
.panel-main .btn.primary { font-size: 14px; padding: 10px 20px; }
.panel-main .admin-card { padding: 20px; }
.panel-main .admin-card-light { padding: 20px; }
.panel-main .admin-main-inner { max-width: 1320px; }
.panel-breadcrumb { font-size: 13px; color: #64748b; margin-bottom: 12px; }
.panel-breadcrumb a { color: #2563eb; text-decoration: none; }
.panel-breadcrumb a:hover { text-decoration: underline; }
.panel-actions-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.panel-filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.panel-filter-row select { min-width: 160px; padding: 8px 12px; border-radius: 8px; border: 1px solid #e2e8f0; font-size: 14px; }

/* Auth layouts (login / register) */

.auth-container {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: radial-gradient(circle at top left, #111827, #020617 65%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  padding: 24px 22px 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.reg-stepper { margin: 8px 0 14px; }
.reg-steps { display:flex; gap:8px; flex-wrap:wrap; }
.reg-step { font-size: 11px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(148,163,184,0.25); color: rgba(226,232,240,0.85); background: rgba(255,255,255,0.06); }
.reg-step.active { border-color: rgba(59,130,246,0.8); background: rgba(59,130,246,0.18); color: #e5e7eb; }
.reg-actions { display:flex; gap:10px; align-items:center; justify-content: flex-end; flex-wrap:wrap; margin-top: 12px; }

.auth-card h2 {
  margin: 0 0 4px;
  font-size: 22px;
  color: #f9fafb;
}

.auth-subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  color: #9ca3af;
}

.auth-field {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-field label {
  font-size: 13px;
  color: #e5e7eb;
}

.auth-field input,
.auth-field select {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.8);
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  color: #f9fafb;
}

.auth-field input::placeholder {
  color: #9ca3af;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.auth-btn {
  width: 100%;
  margin-top: 4px;
}

.auth-footer-text {
  margin-top: 12px;
  font-size: 12px;
  color: #9ca3af;
}

.auth-footer-text a {
  color: #60a5fa;
  text-decoration: none;
}

.auth-footer-text a:hover {
  text-decoration: underline;
}

.auth-alert {
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  margin-bottom: 10px;
}

.auth-alert-error {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.8);
  color: #fecaca;
}

.auth-alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.8);
  color: #bbf7d0;
}

.auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}
.auth-checkbox-label input { flex-shrink: 0; margin-top: 2px; }
.auth-checkbox-label a { color: #60a5fa; }

  /* Responsive */
  
  @media (max-width: 960px) {
    .hero-section {
      grid-template-columns: 1fr;
    }
  
    .hero-banner {
      order: 1;
    }
  
    .side-deals {
      order: 2;
    }
  
    .hero-slide {
      grid-template-columns: 1fr;
    }
  
    .topbar {
      flex-wrap: wrap;
      row-gap: 8px;
    }
  
    .topbar-center {
      order: 3;
      width: 100%;
      padding: 0;
      margin-top: 6px;
    }
  
    .search-bar {
      max-width: 100%;
    }
  
    .topbar-right {
      gap: 10px;
    }
  }
  
  @media (max-width: 640px) {
    .topbar {
      padding-inline: 12px;
    }
  
    .topbar-right {
      display: none;
    }
  
    .hero-banner {
      padding: 14px 12px 16px;
    }
  
    .hero-content h1 {
      font-size: 20px;
    }
  
    .hero-content p {
      font-size: 13px;
    }
  
    .hero-stats strong {
      font-size: 15px;
    }
  
    .footer {
      padding-inline: 16px;
    }
  
    .footer-bottom {
      flex-direction: column;
      gap: 4px;
    }
  }

  /* ========== Legal pages ========== */
  .legal-page .topbar { position: relative; }
  .legal-page .topbar a.logo { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 8px; }
  .legal-main { max-width: 720px; margin: 32px auto 48px; padding: 0 20px; }
  .legal-inner h1 { font-size: 28px; margin-bottom: 4px; }
  .legal-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
  .legal-content { line-height: 1.7; }
  .legal-content h2 { font-size: 18px; margin-top: 24px; margin-bottom: 8px; }
  .legal-content p { margin-bottom: 12px; }
  .legal-content a { color: var(--accent); }

  /* ========== Cookie consent banner ========== */
  .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #e5e7eb;
    padding: 16px 24px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .cookie-banner.hidden { display: none; }
  .cookie-banner p { margin: 0; font-size: 13px; max-width: 560px; }
  .cookie-banner a { color: #60a5fa; text-decoration: none; }
  .cookie-banner a:hover { text-decoration: underline; }
  .cookie-banner .btn { flex-shrink: 0; }

  /* ========== Modal overlay ========== */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .modal-overlay.active { opacity: 1; visibility: visible; }
  .modal-box {
    background: #fff;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    transform: scale(0.95);
    transition: transform 0.25s ease;
  }
  #enquiryModal .modal-box { max-width: 640px; padding: 0; }
  #enquiryModal .modal-header { padding: 22px 24px; border-bottom: 1px solid var(--border-soft); }
  #enquiryModal .modal-header h3 { margin: 0; font-size: 1.35rem; font-weight: 700; }
  #enquiryModal .modal-body { padding: 24px 24px 20px; }
  #enquiryModal .modal-body .form-group { margin-bottom: 18px; }
  #enquiryModal .modal-body label { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
  #enquiryModal .modal-body input, #enquiryModal .modal-body select, #enquiryModal .modal-body textarea {
    padding: 12px 14px; font-size: 15px; border-radius: 10px; border: 1px solid var(--border-soft);
  }
  #enquiryModal .modal-body textarea { min-height: 120px; resize: vertical; }
  #enquiryModal .modal-footer { padding: 18px 24px; gap: 12px; }
  #enquiryModal .modal-footer .btn { padding: 12px 24px; font-size: 15px; }
  .modal-overlay.active .modal-box { transform: scale(1); }
  .modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .modal-header h3 { margin: 0; font-size: 18px; }
  .modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0 4px;
  }
  .modal-close:hover { color: var(--text-main); }
  .modal-body { padding: 20px; }
  .modal-body .form-group { margin-bottom: 14px; }
  .modal-body .form-row { display: flex; gap: 12px; flex-wrap: wrap; }
  .modal-body .form-row .form-group { flex: 1; min-width: 120px; }
  .modal-box-sm { max-width: 400px; }
  .modal-body .checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
  .modal-body .checkbox-label input { width: auto; margin: 0; }
  .modal-body label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
  .modal-body input, .modal-body select, .modal-body textarea {
    width: 100%;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    font-size: 14px;
  }
  .modal-body textarea { min-height: 80px; resize: vertical; }
  .modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  .cart-modal .modal-box { max-width: 440px; }
  .cart-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
  .cart-item:last-child { border-bottom: none; }
  .cart-empty { padding: 20px; text-align: center; color: var(--text-muted); }

  /* ========== Topbar links ========== */
  .topbar a.topbar-link { color: #e5e7eb; text-decoration: none; font-size: 12px; display: flex; flex-direction: column; align-items: center; }
  .topbar a.topbar-link:hover { color: #fff; }
  .topbar .cart-wrap { position: relative; }
  .topbar .cart-count { position: absolute; top: -4px; right: -4px; background: var(--primary); color: #111; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }

  /* ========== Category filter sidebar ========== */
  .category-products-wrap .category-layout-with-filter { display: flex; gap: 24px; align-items: start; }
  .category-filter-sidebar { flex: 0 0 220px; position: sticky; top: 80px; background: var(--card-bg); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-light); }
  .category-filter-sidebar h3 { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--text-main); }
  .filter-group { margin-bottom: 14px; }
  .filter-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
  .filter-check-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
  .filter-check-label input { width: auto; }
  .filter-row { display: flex; align-items: center; gap: 8px; }
  .filter-row .filter-input { flex: 1; min-width: 0; }
  .filter-input, .filter-select { width: 100%; padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-md); font-size: 13px; }
  .filter-select { cursor: pointer; }
  #filterReset { margin-top: 8px; }
  .category-products-main { flex: 1; min-width: 0; }
  @media (max-width: 900px) {
    .category-layout-with-filter { flex-direction: column; }
    .category-filter-sidebar { flex: 0 0 auto; position: static; width: 100%; max-width: 320px; }
  }

  /* ========== Category with sub ========== */
  .category-parent { margin-bottom: 16px; }
  .category-parent-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
  .tile .tile-icon.has-icon { width: 48px; height: 48px; padding: 0; }
.tile .tile-icon.has-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
  .product-card .card-img-wrap { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 3/2; background: #f3f4f6; }
  .product-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
  .product-card .card-img-wrap .card-img-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: #e5e7eb; color: #6b7280; }
  .product-card .card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
  .product-card .btn-small { padding: 6px 10px; font-size: 11px; }

  /* ========== Page main, breadcrumb, category ========== */
  .page-main { max-width: var(--max-width); margin: 0 auto; padding: 20px 20px 40px; }
  .breadcrumb-wrap { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
  .breadcrumb-wrap a { color: var(--accent); text-decoration: none; }
  .breadcrumb-wrap a:hover { text-decoration: underline; }
  .breadcrumb-sep { margin: 0 6px; }
  .category-header { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border-soft); }
  .category-icon { font-size: 48px; }
  .category-icon-img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-md); }
  .category-header h1 { margin: 0 0 6px; font-size: 1.75rem; }
  .category-header p { margin: 0; color: var(--text-muted); font-size: 14px; }
  .subcategories-section { margin-bottom: 32px; }
  .subcategories-section h2 { font-size: 1.1rem; margin-bottom: 14px; }
  .tile-link-wrap { text-decoration: none; color: inherit; display: block; transition: transform 0.2s, box-shadow 0.2s; }
  .tile-link-wrap:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); color: inherit; }
  .product-card-link { text-decoration: none; color: inherit; display: block; }
  .product-card-link:hover { color: inherit; }
  .product-card-link h3 { color: var(--text-main); }
  .price-muted { color: var(--text-muted); }
  .empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
  .empty-state a { color: var(--primary); }
  .search-bar-btn { background: var(--accent); color: #fff; border: none; padding: 8px 18px; font-size: 14px; cursor: pointer; font-weight: 600; border-radius: 0 999px 999px 0; }
  .b2b-cta-strip { background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%); color: #e2e8f0; padding: 20px 24px; margin: 0 0 24px; }
  .b2b-cta-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .b2b-cta-text { font-size: 15px; }
  .b2b-cta-strip .btn { flex-shrink: 0; }

  /* ========== Product detail page ========== */
  .product-detail-page { padding-bottom: 60px; }
  .product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 32px; }
  .product-detail-gallery { position: sticky; top: 20px; }
  .product-detail-img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 1; object-fit: cover; background: #f3f4f6; }
  .product-detail-placeholder { display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 700; color: #d1d5db; }
  .product-detail-badge { display: inline-block; background: var(--primary); color: #111; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
  .product-detail-title { margin: 0 0 10px; font-size: 1.5rem; line-height: 1.3; }
  .product-detail-supplier, .product-detail-cat { margin: 0 0 6px; font-size: 14px; color: var(--text-muted); }
  .product-detail-price-wrap { margin: 20px 0; padding: 16px; background: #f8fafc; border-radius: var(--radius-md); }
  .product-detail-price { font-size: 1.5rem; font-weight: 700; color: var(--text-main); }
  .product-detail-price-note { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
  .product-detail-specs { list-style: none; padding: 0; margin: 0 0 24px; font-size: 14px; }
  .product-detail-specs li { margin-bottom: 6px; }
  .product-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
  .btn-lg { padding: 12px 24px; font-size: 15px; }
  .btn.outline { background: transparent; border: 2px solid #0f172a; color: #0f172a; border-radius: 10px; font-weight: 600; letter-spacing: 0.02em; }
  .btn.outline:hover { background: #0f172a; color: #f1f5f9; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2); }
  .product-detail-hint { font-size: 13px; color: var(--text-muted); }
  .product-detail-desc { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-soft); }
  .product-detail-desc h2 { font-size: 1.1rem; margin-bottom: 12px; }
  .product-detail-specs-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border-soft); }
  .product-detail-specs-block h2 { font-size: 1.1rem; margin: 0 0 6px; }
  .specs-intro { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; }
  .specs-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-soft); background: var(--card-bg); }
  .specs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .specs-table .spec-label { padding: 8px 12px; width: 38%; max-width: 200px; font-weight: 600; color: var(--text-muted); background: #f8fafc; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
  .specs-table .spec-value { padding: 8px 12px; border-bottom: 1px solid var(--border-soft); color: var(--text-main); }
  .specs-table tr:last-child .spec-label,
  .specs-table tr:last-child .spec-value { border-bottom: none; }
  .zoom-wrap { overflow: hidden; border-radius: var(--radius-lg); }
  .product-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
  .thumb-btn { width: 68px; height: 68px; border-radius: 12px; border: 2px solid transparent; background: #fff; padding: 0; overflow: hidden; cursor: pointer; flex: 0 0 auto; }
  .thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .thumb-btn.active { border-color: rgba(59,130,246,0.8); box-shadow: 0 10px 16px rgba(0,0,0,0.10); }
  .product-detail-img { transition: transform 0.18s ease; }
  .product-detail-img.zoomed { transform: scale(1.6); cursor: zoom-in; }
  .seller-rating { margin-left: 10px; font-size: 13px; color: #f59e0b; font-weight: 700; }
  .muted { color: var(--text-muted); font-weight: 500; }
  .product-engagement { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
  .pill-btn-active { background: rgba(249,115,22,0.18); border-color: rgba(249,115,22,0.5); }
  .product-comments { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border-soft); }
  .product-comments h2 { font-size: 1.1rem; margin: 0 0 12px; }
  .comment-form { display: grid; gap: 10px; margin-bottom: 14px; }
  .comment-form textarea { width: 100%; border: 1px solid var(--border-soft); border-radius: 12px; padding: 10px 12px; min-height: 90px; font-family: var(--font-sans); }
  .comment-list { display: grid; gap: 10px; }
  .comment-item { background: #fff; border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px; }
  .comment-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-muted); }
  .comment-body { margin-top: 6px; font-size: 14px; color: var(--text-main); white-space: pre-wrap; }
  @media (max-width: 768px) {
    .product-detail-layout { grid-template-columns: 1fr; }
    .product-detail-actions { flex-direction: column; }
    .product-detail-actions .btn { width: 100%; }
  }

  /* ========== Cart drawer (slide from right) ========== */
  .cart-modal .modal-box { margin-left: auto; margin-right: 0; max-width: 420px; width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s ease; }
  .cart-modal.active .modal-box { transform: translateX(0); }
  .cart-modal .modal-header { flex-shrink: 0; }
  .cart-modal .modal-body { flex: 1; overflow-y: auto; }
  .cart-list { display: flex; flex-direction: column; gap: 12px; }
  .cart-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
  .cart-row-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
  .cart-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .cart-thumb-ph { font-size: 20px; }
  .cart-row-info { min-width: 0; }
  .cart-row-title { display: block; font-weight: 600; color: var(--text-main); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cart-row-title:hover { text-decoration: underline; }
  .cart-row-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
  .qty-stepper { display: inline-flex; align-items: center; gap: 6px; background: #f8fafc; border: 1px solid var(--border-soft); border-radius: 999px; padding: 4px 6px; }
  .qty-btn { width: 28px; height: 28px; border-radius: 999px; border: none; background: #e5e7eb; cursor: pointer; font-weight: 700; }
  .qty-btn:hover { background: #d1d5db; }
  .qty-input { width: 54px; border: none; background: transparent; text-align: center; font-weight: 600; }
  .cart-row-total { display: grid; justify-items: end; gap: 2px; min-width: 84px; }
  .cart-line-total { font-size: 13px; }
  .cart-summary { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
  .cart-summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--text-main); }
  .cart-summary-actions { display: grid; gap: 10px; }
  .cart-modal .cart-empty { padding: 24px; text-align: center; color: var(--text-muted); }

  /* ========== Cart page (full page) ========== */
  .cart-page-title { margin: 0 0 24px; font-size: 1.75rem; font-weight: 700; }
  .cart-empty-block { text-align: center; padding: 60px 20px; }
  .cart-empty-msg { margin: 0 0 20px; font-size: 18px; color: var(--text-muted); }
  .cart-page-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
  .cart-page-layout.cart-page-layout-single { grid-template-columns: 1fr; }
  .cart-items-block { display: flex; flex-direction: column; gap: 20px; }
  .cart-page-item { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 20px; background: var(--card-bg); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-light); }
  .cart-page-item-thumb { width: 140px; height: 140px; border-radius: var(--radius-md); overflow: hidden; background: #f3f4f6; flex-shrink: 0; }
  .cart-page-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .cart-page-thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; }
  .cart-page-item-body { min-width: 0; }
  .cart-page-item-title { margin: 0 0 6px; font-size: 1.1rem; }
  .cart-page-item-title a { color: var(--text-main); text-decoration: none; font-weight: 600; }
  .cart-page-item-title a:hover { text-decoration: underline; }
  .cart-page-item-supplier, .cart-page-item-cat { margin: 0 0 4px; font-size: 13px; color: var(--text-muted); }
  .cart-page-item-specs { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0; font-size: 13px; }
  .cart-page-item-desc { margin: 8px 0 12px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
  .cart-page-item-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
  .cart-page-line-total { font-weight: 700; font-size: 15px; }
  .cart-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 24px; }
  .cart-address-block, .cart-summary-block { background: var(--card-bg); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-light); }
  .cart-address-block h2, .cart-summary-block h2 { margin: 0 0 16px; font-size: 1rem; font-weight: 700; }
  .cart-address-block .form-group { margin-bottom: 14px; }
  .cart-address-block .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .cart-address-block label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
  .cart-address-block input[type="text"] { width: 100%; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-md); font-size: 14px; }
  .payment-options { display: grid; gap: 8px; margin-top: 6px; }
  .payment-option { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--border-soft); background: #0b1120; cursor: pointer; }
  .payment-option input { margin-top: 4px; }
  .payment-option-body { font-size: 13px; }
  .payment-option-title { font-weight: 600; color: #e5e7eb; }
  .payment-option-desc { font-size: 12px; color: #9ca3af; }
  .mt-1 { margin-top: 8px; }
  .cart-summary-block .cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
  .cart-summary-block .cart-summary-row.total { font-size: 1.1rem; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
  .cart-summary-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; margin-top: 16px; }
  @media (min-width: 768px) {
    .cart-summary-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  }
  .cart-summary-actions .btn-span-2 { grid-column: 1 / -1; }
  .btn-block { width: 100%; display: block; text-align: center; }
  @media (max-width: 900px) {
    .cart-page-layout { grid-template-columns: 1fr; }
    .cart-sidebar { position: static; }
    .cart-page-item { grid-template-columns: 100px 1fr; }
    .cart-page-item-thumb { width: 100px; height: 100px; }
  }

  .footer .footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; padding: 20px; color: var(--text-muted); font-size: 13px; }
  .footer .footer-bottom a { color: var(--accent); text-decoration: none; }

  /* ========== Mobile responsive & app-like ========== */
  @media (max-width: 768px) {
    .topbar {
      flex-wrap: wrap;
      padding: 10px 12px;
      gap: 8px;
    }
    .topbar-center {
      order: 3;
      width: 100%;
      padding: 0;
      margin-top: 4px;
    }
    .search-bar {
      max-width: none;
    }
    .search-category { max-width: 100px; font-size: 12px; }
    .search-bar input { font-size: 14px; min-width: 0; }
    .topbar-right { gap: 8px; }
    .topbar a.topbar-link { font-size: 11px; }
    .logo-title { font-size: 14px; }
    .logo-subtitle { display: none; }
    .logo-icon { width: 32px; height: 32px; font-size: 16px; }

    .hero {
      padding: 24px 16px;
      text-align: center;
      min-height: auto;
    }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 14px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn { width: 100%; max-width: 280px; }

    .tiles-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      padding: 16px;
    }
    .tile {
      padding: 14px;
    }
    .tile-icon { font-size: 24px; }
    .tile h3 { font-size: 13px; }
    .tile p { font-size: 11px; display: none; }
    .tile-link { font-size: 11px; }

    .products-section { padding: 20px 16px; }
    .products-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
    .product-card {
      padding: 12px;
    }
    .product-card h3 { font-size: 13px; }
    .product-card .price, .product-card .moq { font-size: 11px; }
    .product-card .card-actions { flex-direction: column; }
    .product-card .btn-small { width: 100%; }

    .footer {
      flex-direction: column;
      text-align: center;
      gap: 16px;
      padding: 24px 16px;
    }
    .footer-links { flex-wrap: wrap; justify-content: center; }

    .modal-overlay { padding: 12px; align-items: flex-end; }
    .modal-box {
      max-height: 85vh;
      border-radius: 16px 16px 0 0;
    }
    .cookie-banner { flex-direction: column; text-align: center; padding: 14px 16px; }
    .cookie-banner .btn { width: 100%; }

    /* Admin/Seller/Buyer panels */
    .admin-shell { flex-direction: column; }
    .admin-sidebar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      top: auto;
      flex-direction: row;
      justify-content: space-around;
      padding: 8px;
      z-index: 100;
    }
    .admin-sidebar .admin-brand,
    .admin-sidebar .admin-nav-section-title,
    .admin-sidebar .admin-sidebar-footer { display: none; }
    .admin-nav {
      display: flex;
      flex-direction: row;
      justify-content: space-around;
      width: 100%;
      gap: 0;
    }
    .admin-nav-link {
      flex-direction: column;
      padding: 8px;
      font-size: 10px;
    }
    .admin-nav-link .icon { font-size: 18px; }
    .admin-main { margin-bottom: 60px; }
    .admin-main-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .admin-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-table { font-size: 12px; min-width: 700px; }
  }

  /* App-like: safe area for notched phones */
  @supports (padding: env(safe-area-inset-bottom)) {
    .admin-sidebar { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
    .cookie-banner { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  }

  /* Mobile home: full-width app feel */
  @media (max-width: 480px) {
    .tiles-grid { grid-template-columns: 1fr 1fr; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-card .card-img-wrap { aspect-ratio: 16/10; }
    .section-header h2 { font-size: 1.25rem; }
  }

  /* ========== Small utility grids ========== */
  .admin-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  @media (max-width: 640px) { .admin-grid-2 { grid-template-columns: 1fr; } }

  .img-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
  .img-card { border: 1px solid var(--border-soft); border-radius: 14px; overflow: hidden; background: #fff; }
  .img-thumb { aspect-ratio: 1; background: #f3f4f6; display:flex; align-items:center; justify-content:center; }
  .img-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .img-actions { display:flex; align-items:center; justify-content: space-between; gap: 8px; padding: 10px; }

  .ticket-list { display: grid; gap: 10px; }
  .ticket-item { display:flex; justify-content: space-between; gap: 12px; align-items: center; text-decoration:none; color: inherit; border: 1px solid var(--border-soft); border-radius: 16px; background: #fff; padding: 12px 14px; box-shadow: 0 14px 24px rgba(0,0,0,0.06); transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .ticket-item:hover { transform: translateY(-1px); box-shadow: 0 20px 30px rgba(0,0,0,0.10); }
  .ticket-id { font-weight: 900; font-size: 12px; color: #1d4ed8; }
  .ticket-subject { font-weight: 900; }
  .ticket-meta { display:flex; flex-wrap:wrap; gap: 10px; align-items:center; margin-top: 4px; }
  .ticket-preview { margin-top: 8px; color: var(--text-muted); font-size: 12px; }
  .ticket-right { font-weight: 800; color: #1d4ed8; font-size: 12px; }

.support-form-card {
  background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.ticket-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ticket-tab {
  border: 1px solid var(--border-soft);
  background: #0b1220;
  color: #cbd5e1;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.ticket-tab.is-active {
  background: rgba(249, 115, 22, 0.25);
  border-color: rgba(249, 115, 22, 0.5);
  color: #fed7aa;
}

.faq-accordion {
  display: grid;
  gap: 10px;
}

.faq-accordion details {
  border: 1px solid var(--border-soft);
  background: #0b1220;
  border-radius: 12px;
  padding: 10px 12px;
}

.faq-accordion summary {
  cursor: pointer;
  font-weight: 700;
  color: #e2e8f0;
  list-style: none;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion details > div {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}

/* Support pages: keep form controls in dark theme */
.support-theme input[type="text"],
.support-theme input[type="email"],
.support-theme input[type="date"],
.support-theme select,
.support-theme textarea {
  background: #0b1220 !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

.support-theme input::placeholder,
.support-theme textarea::placeholder {
  color: #94a3b8;
}

.support-theme label {
  color: #cbd5e1;
}

.support-theme .ticket-item {
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: none;
}

.support-theme .ticket-item:hover {
  box-shadow: 0 16px 28px rgba(2, 6, 23, 0.55);
}

.support-theme .ticket-subject {
  color: #e2e8f0;
}

.support-theme .ticket-id,
.support-theme .ticket-right {
  color: #93c5fd;
}

.support-theme .ticket-preview,
.support-theme .muted {
  color: #94a3b8;
}

/* Strong override for support screens (including /admin/ticket/{id}) */
.support-theme .admin-card,
.support-theme .admin-card-light {
  background: #0f172a !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  color: #e2e8f0 !important;
}

.support-theme .admin-main-header h1,
.support-theme .admin-card-header h2,
.support-theme .admin-card-header h3 {
  color: #f1f5f9 !important;
}

.support-theme .admin-main-header p,
.support-theme .admin-card-sub {
  color: #94a3b8 !important;
}

/* Global premium orange-blue theme aligned to logo */
body {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  color: #0f172a;
}

.topbar {
  background: #ffffff !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.main-nav {
  background: #ffffff !important;
  color: #334155 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.nav-item:hover {
  background: #f1f5f9 !important;
}

.nav-item.active {
  background: #e0f2fe !important;
  color: #075985 !important;
}

.logo-icon {
  border-radius: 10px;
  background: #fff7ed;
  box-shadow: 0 0 0 1px #fed7aa;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-title {
  color: #0f172a;
}

.logo-subtitle {
  color: #64748b;
}

.search-bar {
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.search-bar button,
.search-bar .search-bar-btn {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.search-bar button:hover,
.search-bar .search-bar-btn:hover {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.btn.primary,
button.btn.primary,
a.btn.primary {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.3) !important;
}

.btn.primary:hover,
button.btn.primary:hover,
a.btn.primary:hover {
  background: linear-gradient(135deg, #fb923c, #f97316) !important;
}

.btn.secondary,
.btn.outline {
  border-color: #cbd5e1 !important;
  color: #334155 !important;
  background: #fff !important;
}

.btn.secondary:hover,
.btn.outline:hover {
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
}

.product-card,
.tile,
.hub-card,
.highlight-card,
.supplier-card,
.admin-card,
.cart-items-block,
.cart-summary-block,
.cart-address-block {
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06) !important;
}

.product-card:hover,
.tile:hover,
.hub-card:hover,
.highlight-card:hover,
.supplier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12) !important;
}

.admin-sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

.admin-nav-link {
  color: #334155 !important;
}

.admin-nav-link:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.admin-nav-link.active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  color: #fff !important;
}

.admin-main,
.panel-main {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%) !important;
  color: #0f172a !important;
}

.admin-brand-sub,
.panel-user-name,
.admin-card-sub,
.muted {
  color: #64748b !important;
}

.footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
}

.footer-col h4 {
  color: #e2e8f0;
}

.footer-col a {
  color: #cbd5e1;
}

.footer-col a:hover {
  color: #ffffff;
}

/* Full-site UI polish pack */
.logo-text,
.logo-title,
.logo-subtitle {
  display: none !important;
}

.page-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 44px;
}

.topbar a.topbar-link {
  color: #334155 !important;
  text-decoration: none;
}

.topbar a.topbar-link:hover {
  color: #0f172a !important;
}

.search-bar input,
.auth-field input,
.auth-field select,
.auth-field textarea,
.form-group input,
.form-group select,
.form-group textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  border-radius: 10px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.search-bar input:focus,
.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18) !important;
  outline: none !important;
}

.btn,
button,
a.btn {
  border-radius: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

.btn-block {
  width: 100%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.admin-card,
.admin-card-light,
.cart-items-block,
.cart-summary-block,
.cart-address-block,
.auth-card,
.category-header,
.search-head,
.product-detail-main,
.checkout-items-card {
  border-radius: 14px !important;
}

.admin-table-wrapper {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  background: #f8fafc !important;
}

.admin-table th {
  color: #334155 !important;
  font-weight: 700 !important;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #e2e8f0 !important;
}

.admin-table tbody tr:hover {
  background: #f8fafc !important;
}

.badge,
.pill-btn,
.panel-nav-count {
  border-radius: 999px !important;
}

@media (max-width: 1024px) {
  .page-main {
    padding: 18px 14px 30px;
  }
}

/* Keep support pages dark and readable */
.support-theme input[type="text"],
.support-theme input[type="email"],
.support-theme input[type="date"],
.support-theme select,
.support-theme textarea {
  background: #0b1220 !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

.support-theme input::placeholder,
.support-theme textarea::placeholder {
  color: #94a3b8 !important;
}

/* Page-by-page visual refinement */

/* Home page */
.hero-section {
  gap: 22px;
  margin-top: 22px;
}

.hero-banner {
  border-radius: 20px;
  border: 1px solid #1e293b;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.22);
}

.hero-content h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.hero-content p {
  font-size: 15px;
  max-width: 62ch;
}

.side-deals {
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.1);
}

.home-banner-strip,
.trust-strip,
.highlight-grid,
.products-section,
.category-tiles {
  margin-top: 22px;
}

.section-header h2 {
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 0.01em;
}

/* Category page */
.category-page .category-header,
.category-page .category-filter-sidebar,
.category-page .category-products-main,
.category-page .category-discover-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.06);
}

.category-page .category-header {
  padding: 18px 18px;
}

.category-page .category-layout {
  gap: 16px;
}

.category-page .category-filter-sidebar {
  padding: 14px;
  position: sticky;
  top: 84px;
}

.category-page .filter-group label {
  font-weight: 600;
  color: #334155;
}

.category-page .filter-select,
.category-page .filter-input {
  border-radius: 10px;
  border: 1px solid #cbd5e1;
}

.category-page .category-products-main {
  padding: 16px;
}

.category-page .category-products-main > h2 {
  margin-top: 0;
  font-size: 22px;
}

.category-page .category-discover-section {
  margin-top: 18px;
}

/* Product detail page */
.product-detail-page .product-detail-layout {
  gap: 20px;
}

.product-detail-page .product-detail-gallery,
.product-detail-page .product-detail-info,
.product-detail-page .product-detail-desc,
.product-detail-page .product-comments,
.product-detail-page .specs-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.06);
}

.product-detail-page .product-detail-gallery,
.product-detail-page .product-detail-info {
  padding: 16px;
}

.product-detail-page .product-detail-desc,
.product-detail-page .product-comments,
.product-detail-page .specs-section {
  padding: 16px 18px;
  margin-top: 16px;
}

.product-detail-page .product-detail-title {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
}

.product-detail-page .product-detail-price-wrap {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
}

.product-specs-accordion {
  display: grid;
  gap: 10px;
}

.specs-acc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #dbe6f3;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.specs-ctrl-btn {
  border-color: #93c5fd !important;
  background: #ffffff !important;
  color: #075985 !important;
  font-weight: 700 !important;
}

.specs-ctrl-btn:hover {
  background: #dbeafe !important;
  border-color: #60a5fa !important;
}

.specs-acc-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.specs-acc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 38px 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.specs-acc-item summary::-webkit-details-marker {
  display: none;
}

.specs-acc-item[open] summary {
  background: #eff6ff;
  color: #075985;
}

.specs-acc-item summary::after {
  content: "▸";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #475569;
  transition: transform .16s ease, color .16s ease;
}

.specs-acc-item[open] summary::after {
  content: "▾";
  color: #0284c7;
}

.specs-acc-item .specs-table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.specs-acc-item .specs-table {
  margin: 0;
}

.specs-acc-item .specs-table td {
  font-size: 13px;
}

/* Cart + checkout */
.cart-page .cart-page-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.cart-page .cart-page-item-actions {
  gap: 10px;
}

.cart-page .qty-stepper {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
}

.cart-page .qty-btn {
  background: #f8fafc;
  color: #0f172a;
}

.cart-page .qty-btn:hover {
  background: #e2e8f0;
}

.cart-page .cart-summary-actions .btn {
  min-height: 40px;
}

.checkout-elegant .checkout-tab-btn {
  min-height: 36px;
}

.checkout-elegant .cart-address-block h2,
.checkout-elegant .cart-summary-block h2 {
  font-size: 20px;
}

/* Admin/seller/buyer panel pages */
.panel-main .admin-main-inner {
  max-width: 1360px;
}

.panel-main .admin-main-header {
  margin-bottom: 16px;
}

.panel-main .admin-main-header h1 {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.2;
}

.panel-main .admin-card,
.panel-main .admin-card-light {
  border-radius: 14px;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.panel-main .admin-nav-link {
  border-radius: 10px;
  font-weight: 600;
}

.panel-main .panel-filter-row {
  gap: 10px;
}

.panel-main .admin-search-input,
.panel-main .panel-filter-row input,
.panel-main .panel-filter-row select {
  border-radius: 10px;
  border: 1px solid #cbd5e1 !important;
}

.panel-main .admin-table th,
.panel-main .admin-table td {
  vertical-align: middle;
}

/* Better responsive rhythm */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .category-page .category-layout {
    grid-template-columns: 1fr;
  }

  .category-page .category-filter-sidebar {
    position: static;
  }

  .product-detail-page .product-detail-layout {
    grid-template-columns: 1fr;
  }
}

/* Final consistency fixes: simple logo + uniform buttons */
.logo-icon {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.topbar .logo-icon {
  width: 100%;
  height: auto !important;
}

.footer .logo-icon {
  width: 50%;
  height: auto !important;
}

.admin-brand .logo-icon {
  width: 20%;
  min-width: 34px;
  max-width: 50px;
  height: auto !important;
}

.logo-icon img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
}

.btn,
button.btn,
a.btn {
  border-radius: 10px !important;
  min-height: 38px;
  padding: 9px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
}

.btn.small,
button.btn.small,
a.btn.small {
  min-height: 32px;
  padding: 6px 12px !important;
  font-size: 12px !important;
}

.btn.primary,
button.btn.primary,
a.btn.primary {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #ffffff !important;
  border-color: #ea580c !important;
}

.btn.primary:hover,
button.btn.primary:hover,
a.btn.primary:hover {
  background: linear-gradient(135deg, #fb923c, #f97316) !important;
  color: #ffffff !important;
}

.btn.outline,
.btn.secondary,
.btn.ghost,
button.btn.outline,
button.btn.secondary,
button.btn.ghost,
a.btn.outline,
a.btn.secondary,
a.btn.ghost {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.btn.outline:hover,
.btn.secondary:hover,
.btn.ghost:hover,
button.btn.outline:hover,
button.btn.secondary:hover,
button.btn.ghost:hover,
a.btn.outline:hover,
a.btn.secondary:hover,
a.btn.ghost:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

/* Search bar premium + advanced suggest dropdown */
.topbar-center .search-bar {
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  overflow: visible;
}

.topbar-center .search-input-wrap {
  position: relative;
}

.topbar-center .search-bar input {
  padding: 11px 14px !important;
  font-size: 14px;
  color: #0f172a !important;
}

.topbar-center .search-bar input::placeholder {
  color: #94a3b8;
}

.topbar-center .search-bar .search-bar-btn {
  border-radius: 0 13px 13px 0 !important;
  min-height: 42px;
  min-width: 110px;
}

.search-suggest {
  top: calc(100% + 10px) !important;
  border: 1px solid #dbe4ef !important;
  border-radius: 14px !important;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16) !important;
  overflow: hidden;
}

.search-suggest .ss-section {
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
  color: #475569 !important;
}

.search-suggest a.ss-item {
  grid-template-columns: 40px 1fr auto !important;
  padding: 10px 12px !important;
}

.search-suggest a.ss-item:hover,
.search-suggest a.ss-item.active {
  background: #eff6ff !important;
}

.search-suggest .ss-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0;
  background: #ffffff !important;
}

.search-suggest .ss-title {
  color: #0f172a !important;
  font-weight: 600;
}

.search-suggest .ss-meta {
  color: #64748b !important;
}

.search-suggest .ss-mark {
  background: #ffedd5;
  color: #9a3412;
  border-radius: 4px;
  padding: 0 2px;
}

.search-suggest .ss-footer-link {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #0369a1;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.search-suggest .ss-footer-link:hover {
  background: #e0f2fe;
}

/* Cart + checkout redesign v2 */
.cart-page.cart-redesign,
.cart-page.checkout-v2 {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px;
}

.cart-page .cart-page-title {
  margin-bottom: 6px;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.01em;
}

.cart-page .cart-page-subtitle {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
}

.cart-page.cart-redesign .cart-page-layout {
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr) !important;
  gap: 20px !important;
}

.cart-items-head {
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.cart-items-head h2 {
  margin: 0;
  font-size: 16px;
  color: #0f172a;
}

.cart-page .cart-page-item {
  border-radius: 14px !important;
  border: 1px solid #dbe6f3 !important;
  background: #ffffff !important;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.06) !important;
}

.cart-page .cart-page-item-title {
  font-size: 18px;
}

.cart-page .cart-page-item-specs span {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
}

.cart-page .cart-page-line-total {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 6px 10px;
}

.cart-page .cart-address-block,
.cart-page .cart-summary-block {
  border-radius: 14px !important;
  border: 1px solid #dbe6f3 !important;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08) !important;
}

.cart-page .cart-address-block h2,
.cart-page .cart-summary-block h2 {
  font-size: 20px !important;
  margin-bottom: 14px !important;
}

.cart-page .cart-summary-row {
  border-bottom: 1px dashed #dbe6f3;
  padding: 10px 0;
}

.cart-page .cart-summary-row:last-child {
  border-bottom: none;
}

.cart-page .cart-summary-row.total {
  margin-top: 4px;
  padding-top: 12px;
  font-size: 18px !important;
}

.cart-page .cart-summary-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cart-page .cart-summary-actions .btn.primary {
  grid-column: 1 / -1;
}

.checkout-v2 .checkout-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr) !important;
  gap: 20px !important;
}

.checkout-v2 .checkout-tabs {
  gap: 8px;
  margin-bottom: 14px;
}

.checkout-v2 .checkout-tab-btn {
  min-height: 38px;
  padding: 8px 14px;
}

.checkout-v2 .checkout-section-title {
  font-size: 16px;
  margin-bottom: 10px;
}

.checkout-v2 [data-checkout-panel] {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}

.checkout-v2 .payment-option {
  border-radius: 12px;
  padding: 12px !important;
}

.checkout-v2 .cart-summary-block {
  position: sticky;
  top: 18px;
}

@media (max-width: 1024px) {
  .cart-page.cart-redesign .cart-page-layout,
  .checkout-v2 .checkout-layout {
    grid-template-columns: 1fr !important;
  }

  .cart-page .cart-summary-actions {
    grid-template-columns: 1fr;
  }
}

/* Header + footer professional polish */
.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: saturate(140%) blur(6px);
  padding: 10px 18px;
}

.topbar-left {
  gap: 10px;
}

.topbar-quick-link {
  text-decoration: none;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.topbar-quick-link:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

.topbar-right {
  gap: 10px !important;
}

.topbar-currency {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.topbar-currency select {
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 12px;
  outline: none;
}

.topbar-account-btn {
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.topbar-account-btn:hover {
  background: #f8fafc !important;
}

.topbar-arrow {
  font-size: 10px;
  color: #64748b;
}

.topbar-login-dropdown {
  position: relative;
}

.topbar-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #dbe6f3;
  border-radius: 12px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.15);
  z-index: 90;
  padding: 8px;
}

.topbar-dropdown-item {
  display: block;
  text-decoration: none;
  color: #0f172a;
  font-size: 13px;
  padding: 9px 10px;
  border-radius: 8px;
}

.topbar-dropdown-item:hover {
  background: #f8fafc;
}

.topbar-dropdown-item-danger {
  color: #b91c1c;
}

.topbar-dropdown-item-muted {
  color: #64748b;
}

.topbar-cart-link {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
}

.topbar-cart-link:hover {
  background: #f8fafc;
}

.main-nav {
  position: sticky;
  top: 73px;
  z-index: 60;
}

.footer {
  margin-top: 28px;
  padding: 24px 20px 16px;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border-top: 1px solid #1e293b;
}

.footer-cols {
  gap: 18px;
  grid-template-columns: 1.3fr repeat(4, minmax(140px, 1fr));
}

.footer-brand-col {
  padding-right: 16px;
}

.footer-brand-logo {
  display: inline-flex;
  text-decoration: none;
  margin-bottom: 10px;
}

.footer-brand-copy {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
}

.footer-brand-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-col h4 {
  margin-bottom: 8px;
  color: #f1f5f9;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.footer-col a {
  margin: 5px 0;
  color: #cbd5e1;
  font-size: 13px;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-trust-row {
  max-width: var(--max-width);
  margin: 4px auto 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.footer-trust-row span {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
  text-align: center;
  color: #cbd5e1;
  font-size: 12px;
  background: rgba(30, 41, 59, 0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 10px;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .topbar {
    gap: 10px;
    flex-wrap: wrap;
  }

  .topbar-center {
    order: 3;
    width: 100%;
    padding: 0;
  }

  .main-nav {
    top: 73px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar-left {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-trust-row {
    grid-template-columns: 1fr;
  }
}

/* Categories page redesign */
.categories-page .categories-hero {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px 18px;
  box-shadow: 0 12px 22px rgba(15,23,42,.06);
}

.categories-toolbar {
  margin: 0 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}

.categories-toolbar-search {
  flex: 1;
}

.categories-toolbar-search input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
}

.categories-toolbar-meta {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: #64748b;
}

#categoriesVisibleCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
}

.categories-all {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.cat-block {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 10px 20px rgba(15,23,42,.05);
}

.cat-block-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.cat-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-link {
  display: inline-flex;
  text-decoration: none;
  border: 1px solid #dbe6f3;
  border-radius: 999px;
  padding: 6px 10px;
  color: #334155;
  background: #f8fafc;
  font-size: 12px;
}

.cat-link:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* Home card action row */
.products-grid .product-card .card-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.products-grid .product-card .card-actions .btn {
  width: 100%;
  white-space: nowrap;
}

/* Mobile: header + search + bottom nav */
body {
  padding-bottom: 0;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .topbar {
    padding: 8px 10px;
  }

  .topbar-left .topbar-quick-link {
    display: none;
  }

  .topbar-right {
    gap: 6px !important;
  }

  .topbar-currency {
    padding: 3px 6px;
  }

  .topbar-center .search-bar {
    border-radius: 12px !important;
  }

  .topbar-center .search-bar .search-bar-btn {
    min-width: 86px;
  }

  .main-nav {
    top: 73px;
  }

  .products-grid .product-card .card-actions {
    grid-template-columns: 1fr 1fr;
  }

  .categories-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .categories-toolbar-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 72px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 6px 8px max(8px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
    border-top: 1px solid #dbe6f3;
    box-shadow: 0 -8px 20px rgba(15,23,42,.1);
    backdrop-filter: blur(8px);
  }

  .mobile-bottom-nav-item {
    text-decoration: none;
    color: #334155;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 10px;
    min-height: 54px;
    font-size: 10px;
    font-weight: 600;
  }

  .mobile-bottom-nav-item:hover,
  .mobile-bottom-nav-item:active {
    background: #f1f5f9;
    color: #0f172a;
  }

  .mbn-ic {
    font-size: 17px;
    line-height: 1;
  }

  .mbn-tx {
    line-height: 1;
  }
}

/* Product image consistency: premium no-stretch rendering */
.products-grid .product-card .card-img-wrap {
  aspect-ratio: 4 / 3 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
  overflow: hidden !important;
}

.products-grid .product-card .card-img-wrap img,
.products-grid .product-card .card-img-wrap .card-img-icon,
.product-detail-gallery .product-detail-img,
.product-thumbs .thumb-btn img,
.cart-page-item-thumb img,
.cart-row-thumb img,
.img-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  image-rendering: auto;
}
.products-grid .product-card .card-img-wrap .card-img-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: #e5e7eb;
  color: #6b7280;
}

.product-detail-gallery .product-detail-img {
  aspect-ratio: 1 / 1 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

.product-thumbs .thumb-btn {
  border-radius: 10px !important;
  overflow: hidden;
}

/* Category page: smart filter/sort redesign */
.category-smart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}

.category-toolbar-meta {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #64748b;
  font-size: 12px;
}

.category-toolbar-meta strong {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.category-quick-chips {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chip-btn {
  border: 1px solid #dbe6f3;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.chip-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.chip-btn.active {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #075985;
}

.category-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.category-filter-close {
  display: none;
}

.category-products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.category-products-sub {
  font-size: 12px;
  color: #64748b;
}

.category-page .category-filter-sidebar {
  min-width: 260px;
}

.category-page .filter-group {
  margin-bottom: 12px;
}

.category-page .filter-input,
.category-page .filter-select {
  min-height: 38px;
}

.category-page .products-grid .product-card .card-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.category-page .products-grid .product-card .card-actions .btn {
  width: 100%;
}

.active-filters-bar {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.active-filters-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-filter-tag {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.active-filter-tag span {
  color: #0c4a6e;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .category-smart-toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .category-quick-chips {
    justify-content: flex-start;
  }

  .active-filters-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .category-filter-toggle {
    display: inline-flex;
  }

  .category-page .category-layout-with-filter {
    position: relative;
  }

  .category-page .category-filter-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(92vw, 360px);
    max-width: none !important;
    z-index: 120;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .24s ease;
    border-radius: 0 14px 14px 0;
    box-shadow: 18px 0 34px rgba(15,23,42,.2);
  }

  .category-page .category-filter-sidebar.open {
    transform: translateX(0);
  }

  .category-filter-close {
    display: inline-flex;
  }
}

/* Buyer panel professional redesign */
.buyer-shell {
  background: #020617;
}

.buyer-shell .panel-sidebar {
  border-right: 1px solid #1e293b !important;
  background: linear-gradient(180deg, #0b1220 0%, #020617 100%) !important;
}

.buyer-shell .admin-brand {
  padding: 6px 4px 2px;
}

.buyer-shell .admin-brand-title {
  color: #f8fafc !important;
  font-size: 16px;
  font-weight: 700;
}

.buyer-shell .admin-brand-sub {
  color: #93c5fd !important;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.buyer-shell .admin-nav-section-title {
  color: #64748b !important;
}

.buyer-shell .admin-nav-link {
  color: #cbd5e1 !important;
  border: 1px solid transparent;
}

.buyer-shell .admin-nav-link:hover {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: #334155;
  color: #f8fafc !important;
}

.buyer-shell .admin-nav-link.active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(2,132,199,.35);
}

.buyer-shell .panel-nav-count {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.buyer-shell .panel-user-name {
  color: #e2e8f0 !important;
}

.buyer-shell .panel-logout {
  color: #fda4af !important;
}

.buyer-shell .panel-logout:hover {
  color: #fecdd3 !important;
}

.buyer-shell .panel-main {
  background: radial-gradient(1400px 500px at 10% -20%, #0b1f3a 0%, #020617 52%, #020617 100%) !important;
  color: #e2e8f0 !important;
}

.buyer-shell .admin-main-inner {
  max-width: 1280px;
}

.buyer-shell .admin-main-header {
  background: linear-gradient(135deg, rgba(14,165,233,.18), rgba(59,130,246,.08));
  border: 1px solid rgba(125,211,252,.28);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.buyer-shell .admin-main-header h1 {
  color: #f8fafc !important;
  margin: 0 0 4px;
  font-size: clamp(24px, 2.2vw, 32px);
}

.buyer-shell .admin-main-header p {
  color: #94a3b8 !important;
  margin: 0;
}

.buyer-shell .admin-card,
.buyer-shell .admin-card-light {
  background: #0b1220 !important;
  border: 1px solid #1e293b !important;
  color: #e2e8f0 !important;
  border-radius: 14px;
  box-shadow: 0 14px 24px rgba(2,6,23,.45);
}

.buyer-shell .admin-card-header h2,
.buyer-shell .admin-card-header h3 {
  color: #f8fafc !important;
}

.buyer-shell .admin-card-sub,
.buyer-shell .muted {
  color: #94a3b8 !important;
}

.buyer-shell .admin-stat-card-title {
  color: #93c5fd !important;
}

.buyer-shell .admin-stat-card-value {
  color: #f8fafc !important;
}

.buyer-shell .admin-stat-card-meta {
  color: #94a3b8 !important;
}

.buyer-shell .admin-table-wrapper {
  border: 1px solid #1e293b !important;
  border-radius: 12px;
  background: #0a1020 !important;
}

.buyer-shell .admin-table thead {
  background: #0f172a !important;
}

.buyer-shell .admin-table th {
  color: #93c5fd !important;
  border-color: #1e293b !important;
}

.buyer-shell .admin-table td {
  color: #e2e8f0 !important;
  border-color: #1e293b !important;
}

.buyer-shell .admin-table tbody tr:hover {
  background: rgba(30,41,59,.6) !important;
}

@media (max-width: 900px) {
  .buyer-shell .panel-main {
    grid-template-columns: 1fr !important;
  }

  .buyer-shell .panel-sidebar {
    position: static;
    width: 100%;
    min-width: 0;
    border-right: 0 !important;
    border-bottom: 1px solid #1e293b !important;
  }

  .buyer-shell .admin-main-inner {
    padding: 12px !important;
  }

  .buyer-shell .admin-main-header {
    margin-bottom: 12px;
  }

  .buyer-shell .admin-main-header h1 {
    font-size: 20px;
  }

  .buyer-shell .admin-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .buyer-shell .admin-main-inner {
    padding: 10px !important;
  }

  .buyer-shell .admin-main-header h1 {
    font-size: 18px;
  }

  .buyer-shell .admin-main-header p {
    font-size: 12px;
  }

  .buyer-shell .admin-card,
  .buyer-shell .admin-card-light {
    padding: 12px 10px;
  }
}

.buyer-shell .admin-search-input,
.buyer-shell .form-group input,
.buyer-shell .form-group select,
.buyer-shell .form-group textarea {
  background: #0a1020 !important;
  border: 1px solid #334155 !important;
  color: #e2e8f0 !important;
}

.buyer-shell .admin-search-input::placeholder,
.buyer-shell .form-group input::placeholder,
.buyer-shell .form-group textarea::placeholder {
  color: #64748b !important;
}

.buyer-shell .badge {
  border-radius: 999px;
}

.buyer-shell .badge-soft {
  background: rgba(148,163,184,.18) !important;
  color: #cbd5e1 !important;
  border: 1px solid #334155;
}

.buyer-shell .badge-success {
  background: rgba(16,185,129,.95) !important;
  color: #ffffff !important;
  border: 1px solid rgba(16,185,129,.35);
}

.buyer-shell .badge-warning {
  background: rgba(234,179,8,.15) !important;
  color: #fde047 !important;
  border: 1px solid rgba(234,179,8,.35);
}

.buyer-shell .pill-btn {
  background: #0b1220 !important;
  border: 1px solid #334155 !important;
  color: #e2e8f0 !important;
}

.buyer-shell .pill-btn:hover {
  background: #1e293b !important;
}

/* Generic status strip for detail pages */
.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(56,189,248,.25), rgba(15,23,42,1));
  border: 1px solid rgba(56,189,248,.35);
  align-items: center;
}

.status-strip-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e5e7eb;
}

.status-strip-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.status-chip {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.55);
  color: #cbd5f5;
  background: rgba(15,23,42,.9);
}

.status-chip.active {
  border-color: rgba(59,130,246,1);
  background: linear-gradient(135deg, rgba(56,189,248,.4), rgba(59,130,246,.85));
  color: #0b1120;
}

.status-chip.done {
  border-color: rgba(34,197,94,.8);
  background: rgba(22,163,74,.2);
  color: #bbf7d0;
}

@media (max-width: 640px) {
  .status-strip {
    border-radius: 14px;
    align-items: flex-start;
  }
}

/* Buyer panel top mobile header */
.buyer-topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(15,23,42,.98), rgba(15,23,42,.94));
  border-bottom: 1px solid rgba(30,64,175,.7);
}

.buyer-topbar-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #e5e7eb;
  letter-spacing: 0.02em;
}

.buyer-topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.6);
  background: radial-gradient(circle at 30% 0%, rgba(59,130,246,.35), rgba(15,23,42,1));
  color: #e5e7eb;
  cursor: pointer;
  font-size: 16px;
}

.buyer-topbar-btn span {
  line-height: 1;
}

.buyer-topbar-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Collapse sidebar when menu closed on narrow screens */
@media (max-width: 900px) {
  .buyer-shell {
    padding-top: 0;
  }

  .buyer-shell .panel-main {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .buyer-shell .panel-sidebar {
    position: fixed;
    top: 50px;
    left: 0;
    bottom: 0;
    width: 240px;
    max-width: 80%;
    transform: translateX(-100%);
    transition: transform 0.22s ease-out;
    z-index: 130;
  }

  .buyer-shell.buyer-menu-open .panel-sidebar {
    transform: translateX(0);
  }

  .buyer-shell.buyer-menu-open::before {
    content: "";
    position: fixed;
    inset: 50px 0 0 0;
    background: rgba(15,23,42,.65);
    z-index: 120;
  }
}

/* Buyer bottom nav (mobile) */
.buyer-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  display: none;
  background: rgba(15,23,42,.98);
  border-top: 1px solid rgba(30,64,175,.6);
  backdrop-filter: blur(18px);
}

.buyer-bottom-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px 10px;
  font-size: 10px;
  color: #9ca3af;
  text-decoration: none !important;
  gap: 2px;
}

.buyer-bottom-item .ic {
  font-size: 16px;
}

.buyer-bottom-item.active {
  color: #e5e7eb;
}

.buyer-bottom-item.active .ic {
  filter: drop-shadow(0 0 6px rgba(59,130,246,.9));
}

@media (max-width: 1024px) {
  .buyer-bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 80px;
  }
}

/* Buyer dashboard tabs */
.buyer-dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.buyer-dash-tab {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #1e293b;
  color: #e2e8f0;
  background: #020617;
}

.buyer-dash-tab.active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #0f172a;
  border-color: #38bdf8;
}

@media (max-width: 768px) {
  .buyer-dash-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Buyer orders: mobile cards vs desktop table */
.buyer-orders-mobile {
  display: none;
}

.buyer-order-card {
  border-radius: 12px;
  border: 1px solid #1e293b;
  background: #020617;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.buyer-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.buyer-order-no {
  font-weight: 700;
  font-size: 13px;
}

.buyer-order-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 11px;
}

.buyer-order-meta .lbl {
  display: block;
  color: #94a3b8;
}

.buyer-order-meta .val {
  display: block;
  color: #e2e8f0;
  font-weight: 600;
}

.buyer-order-cta {
  margin-top: 4px;
  text-align: center;
}

@media (max-width: 768px) {
  .buyer-orders-desktop {
    display: none;
  }
  .buyer-orders-mobile {
    display: grid;
    gap: 10px;
  }
  .buyer-order-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .buyer-shell .admin-main-header {
    padding: 12px;
  }
}

/* Force dark theme on all admin/seller/buyer panels */
.admin-shell,
.admin-main,
.panel-main,
.seller-shell,
.buyer-shell {
  background: #020617 !important;
  color: #e2e8f0 !important;
}

.admin-shell .panel-sidebar,
.admin-shell .admin-sidebar {
  background: linear-gradient(180deg, #0b1220 0%, #020617 100%) !important;
  border-right: 1px solid #1e293b !important;
  color: #e2e8f0 !important;
}

.admin-shell .admin-brand-title,
.admin-shell .admin-nav-link,
.admin-shell .panel-user-name {
  color: #e2e8f0 !important;
}

.admin-shell .admin-brand-sub,
.admin-shell .admin-nav-section-title,
.admin-shell .admin-card-sub,
.admin-shell .muted {
  color: #94a3b8 !important;
}

.admin-shell .admin-nav-link:hover {
  background: #1e293b !important;
  color: #f8fafc !important;
}

.admin-shell .admin-nav-link.active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  color: #fff !important;
}

.admin-shell .admin-main-header,
.admin-shell .admin-card,
.admin-shell .admin-card-light,
.admin-shell .analytics-card,
.admin-shell .seller-product-section {
  background: #0b1220 !important;
  border: 1px solid #1e293b !important;
  color: #e2e8f0 !important;
}

.admin-shell .admin-main-header h1,
.admin-shell .admin-card-header h2,
.admin-shell .admin-card-header h3,
.admin-shell .admin-table td,
.admin-shell .admin-stat-card-value {
  color: #f8fafc !important;
}

.admin-shell .admin-main-header p,
.admin-shell .admin-stat-card-title,
.admin-shell .admin-stat-card-meta {
  color: #94a3b8 !important;
}

.admin-shell .admin-table-wrapper {
  background: #0a1020 !important;
  border: 1px solid #1e293b !important;
}

.admin-shell .admin-table thead {
  background: #0f172a !important;
}

.admin-shell .admin-table th {
  color: #93c5fd !important;
  border-color: #1e293b !important;
}

.admin-shell .admin-table td {
  border-color: #1e293b !important;
}

.admin-shell .admin-table tbody tr:hover {
  background: #1e293b !important;
}

/* Smoky dark inputs for all panel forms */
.admin-shell .auth-field input,
.admin-shell .auth-field select,
.admin-shell .auth-field textarea,
.admin-shell .form-group input,
.admin-shell .form-group select,
.admin-shell .form-group textarea,
.admin-shell .admin-search-input,
.admin-shell .panel-filter-row input,
.admin-shell .panel-filter-row select,
.admin-shell input[type="text"],
.admin-shell input[type="email"],
.admin-shell input[type="password"],
.admin-shell input[type="number"],
.admin-shell input[type="date"],
.admin-shell textarea {
  border: 1px solid #334155 !important;
  color: #e2e8f0 !important;
}

.admin-shell .auth-field input::placeholder,
.admin-shell .auth-field textarea::placeholder,
.admin-shell .form-group input::placeholder,
.admin-shell .form-group textarea::placeholder,
.admin-shell .admin-search-input::placeholder,
.admin-shell input::placeholder,
.admin-shell textarea::placeholder {
  color: #64748b !important;
}

.admin-shell .auth-field input:focus,
.admin-shell .auth-field select:focus,
.admin-shell .auth-field textarea:focus,
.admin-shell .form-group input:focus,
.admin-shell .form-group select:focus,
.admin-shell .form-group textarea:focus,
.admin-shell .admin-search-input:focus,
.admin-shell .panel-filter-row input:focus,
.admin-shell .panel-filter-row select:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18) !important;
  outline: none !important;
}

/* Global highlight + icon language (site-wide consistency) */
h1, h2, h3 {
  letter-spacing: -0.01em;
}

h1 {
  font-weight: 800;
}

h2 {
  font-weight: 750;
}

h3 {
  font-weight: 700;
}

a {
  color: #0369a1;
  transition: color .16s ease, text-decoration-color .16s ease;
}

a:hover {
  color: #0c4a6e;
}

.section-header h2,
.admin-card-header h2,
.admin-main-header h1,
.category-header h1,
.cart-page-title {
  position: relative;
}

.section-header h2::before,
.admin-card-header h2::before,
.admin-main-header h1::before,
.category-header h1::before,
.cart-page-title::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 4px;
  border-radius: 999px;
  margin-right: 8px;
  transform: translateY(-3px);
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.badge,
.product-tag,
.hero-kicker,
.hero-badge,
.panel-nav-count,
.pill-btn,
.chip-btn,
.active-filter-tag {
  box-shadow: 0 8px 16px rgba(2, 132, 199, 0.12);
}

.product-tag {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-success {
  background: linear-gradient(135deg, rgba(16,185,129,.95), rgba(5,150,105,.9)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(5,150,105,.35) !important;
}

.badge-warning {
  background: linear-gradient(135deg, rgba(245,158,11,.2), rgba(217,119,6,.18)) !important;
  color: #7c2d12 !important;
  border: 1px solid rgba(217,119,6,.35) !important;
}

.badge-soft {
  background: rgba(148,163,184,.16) !important;
  border: 1px solid rgba(148,163,184,.35) !important;
}

.tile-icon,
.trust-ic,
.hc-ic,
.sci {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.admin-shell .tile-icon,
.admin-shell .trust-ic,
.admin-shell .hc-ic,
.admin-shell .sci {
  border: 1px solid #334155;
  background: #0a1020;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.45);
}

.admin-shell .section-header h2::before,
.admin-shell .admin-card-header h2::before,
.admin-shell .admin-main-header h1::before {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.admin-shell a {
  color: #7dd3fc;
}

.admin-shell a:hover {
  color: #bae6fd;
}

@media (max-width: 768px) {
  .section-header h2::before,
  .admin-card-header h2::before,
  .admin-main-header h1::before,
  .category-header h1::before,
  .cart-page-title::before {
    width: 20px;
    height: 3px;
    margin-right: 6px;
  }
}

/* Lightweight premium motion and about page polish */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 12% 18%, rgba(14,165,233,.08) 0%, rgba(14,165,233,0) 70%),
    radial-gradient(35% 30% at 86% 14%, rgba(249,115,22,.08) 0%, rgba(249,115,22,0) 70%),
    radial-gradient(30% 28% at 50% 84%, rgba(99,102,241,.07) 0%, rgba(99,102,241,0) 70%);
  animation: ambientFloat 22s ease-in-out infinite alternate;
  transform: translateZ(0);
  will-change: transform, opacity;
}

@keyframes ambientFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: .95; }
  100% { transform: translate3d(0, -1.5%, 0) scale(1.02); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none !important; }
}

.btn.primary,
button.btn.primary,
a.btn.primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 55%, #0284c7 100%) !important;
  border: none !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.btn.primary:hover,
button.btn.primary:hover,
a.btn.primary:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #0ea5e9 100%) !important;
}

.about-page .legal-main {
  max-width: 980px;
}

.about-page .legal-inner {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.98));
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  padding: 20px;
}

.about-hero-card {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #eff6ff, #fff7ed);
  margin-bottom: 18px;
}

.about-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.about-chip {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
}

.about-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.about-contact-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.about-contact-card h2 {
  margin-top: 0;
}

.about-cta-row {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .about-contact-grid { grid-template-columns: 1fr; }
}

/* Product cards + header/search smart polish */
.products-grid .product-card .card-actions .btn-add-cart,
.category-page .products-grid .product-card .card-actions .btn-add-cart {
  background: linear-gradient(135deg, #0ea5e9, #0369a1) !important;
  color: #ffffff !important;
  border: none !important;
  text-decoration: none !important;
}

.products-grid .product-card .card-actions .btn-request-quote,
.category-page .products-grid .product-card .card-actions .btn-request-quote {
  background: linear-gradient(135deg, #f8fbff, #eef6ff) !important;
  color: #0369a1 !important;
  border: 1px solid #7dd3fc !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.products-grid .product-card .card-actions .btn-add-cart:hover,
.products-grid .product-card .card-actions .btn-request-quote:hover {
  filter: none;
}

.products-grid .product-card .card-actions .btn-request-quote:hover,
.category-page .products-grid .product-card .card-actions .btn-request-quote:hover {
  background: #ffffff !important;
  color: #075985 !important;
  border: 1px solid #38bdf8 !important;
  box-shadow: none !important;
  outline: 2px solid rgba(56, 189, 248, 0.22);
  outline-offset: 0;
}

.product-card h3,
.product-card .product-card-link h3 {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100%;
}

.btn,
button.btn,
a.btn,
.topbar-link,
.topbar-dropdown-item,
.search-suggest a.ss-item,
.search-suggest .ss-footer-link {
  text-decoration: none !important;
}

.btn:hover,
button.btn:hover,
a.btn:hover,
.topbar-link:hover,
.topbar-dropdown-item:hover {
  text-decoration: none !important;
}

.topbar-center .search-bar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 170px auto;
  align-items: stretch;
}

.topbar-center .search-input-wrap {
  position: relative;
}

.topbar-center .search-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 14px;
  pointer-events: none;
}

.topbar-center .search-bar input {
  padding: 11px 14px 11px 34px !important;
}

.search-category-select {
  border: 0;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  padding: 0 10px;
  outline: none;
  min-width: 0;
}

.topbar-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #0369a1;
  font-size: 13px;
  line-height: 1;
}

.topbar-dd-ic {
  display: inline-block;
  width: 16px;
  margin-right: 6px;
  color: #0369a1;
}

.topbar-signup-link {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  color: #0f172a !important;
}

.topbar-signup-link:hover {
  background: #f8fafc;
}

@media (max-width: 900px) {
  .topbar-center .search-bar {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  .search-category-select {
    display: none;
  }
}

/* Final button unification: softer mixed gradient + no forced full width */
.btn.primary,
button.btn.primary,
a.btn.primary {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 52%, #0ea5e9 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.btn.primary:hover,
button.btn.primary:hover,
a.btn.primary:hover {
  background: linear-gradient(135deg, #fdba74 0%, #fb923c 48%, #38bdf8 100%) !important;
  color: #ffffff !important;
}

.btn-block,
button.btn-block,
a.btn-block {
  width: auto !important;
  display: inline-flex !important;
}

.product-detail-page .product-comments .comment-form .btn {
  width: auto !important;
  align-self: flex-start;
}

.cart-page .cart-summary-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
}

.cart-page .cart-summary-actions .btn {
  width: auto !important;
  flex: 0 0 auto;
}

.cart-page .cart-summary-actions .btn.primary {
  grid-column: auto !important;
}

@media (max-width: 900px) {
  .product-detail-page .product-detail-actions .btn {
    width: auto !important;
  }
}

/* Unified button system: same style across whole website */
.btn,
button.btn,
a.btn,
.btn.primary,
button.btn.primary,
a.btn.primary,
.btn.outline,
button.btn.outline,
a.btn.outline,
.btn.ghost,
button.btn.ghost,
a.btn.ghost,
.btn.secondary,
button.btn.secondary,
a.btn.secondary,
.btn.danger,
button.btn.danger,
a.btn.danger {
  background: linear-gradient(135deg, #f8fbff, #eef6ff) !important;
  color: #0369a1 !important;
  border: 1px solid #7dd3fc !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.btn:hover,
button.btn:hover,
a.btn:hover,
.btn.primary:hover,
button.btn.primary:hover,
a.btn.primary:hover,
.btn.outline:hover,
button.btn.outline:hover,
a.btn.outline:hover,
.btn.ghost:hover,
button.btn.ghost:hover,
a.btn.ghost:hover,
.btn.secondary:hover,
button.btn.secondary:hover,
a.btn.secondary:hover,
.btn.danger:hover,
button.btn.danger:hover,
a.btn.danger:hover {
  background: #ffffff !important;
  color: #075985 !important;
  border: 1px solid #38bdf8 !important;
  box-shadow: none !important;
  outline: 2px solid rgba(56, 189, 248, 0.22);
  outline-offset: 0;
  text-decoration: none !important;
  filter: none !important;
}

/* Search bar: left icon-only category chooser */
.topbar-center .search-bar {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  width: 90% !important;
  margin: 0 auto;
}

.topbar-center .search-input-wrap {
  width: 100%;
  min-width: 0;
}

.topbar-center .search-bar input {
  width: 100% !important;
}

.search-cat-wrap {
  position: relative;
  border-right: 1px solid #e2e8f0;
}

.search-cat-trigger {
  height: 100%;
  min-width: 42px;
  border: 0;
  background: #f8fafc;
  color: #0369a1;
  cursor: pointer;
  font-size: 14px;
}

.search-cat-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.14);
  z-index: 120;
  padding: 6px;
}

.search-cat-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  color: #0f172a;
  cursor: pointer;
}

.search-cat-item:hover,
.search-cat-item.active {
  background: #eff6ff;
  color: #075985;
}

.topbar-center .search-bar .search-bar-btn {
  min-width: 44px !important;
  padding: 0 12px !important;
}

@media (max-width: 900px) {
  .topbar-center .search-bar {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }
}

/* Auth pages: light professional redesign */
.auth-container {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.auth-shell {
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.auth-hero-card {
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  padding: 18px;
}

.auth-kicker {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #bae6fd;
  color: #0369a1;
  background: #f0f9ff;
  font-size: 12px;
  font-weight: 700;
}

.auth-hero-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #0f172a;
}

.auth-hero-card p {
  margin: 0 0 10px;
  color: #475569;
}

.auth-hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  display: grid;
  gap: 6px;
}

.auth-card {
  max-width: none;
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.auth-card h2 {
  color: #0f172a;
}

.auth-subtitle,
.auth-hint {
  color: #64748b !important;
}

.auth-field label {
  color: #334155;
}

.auth-field input,
.auth-field select {
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #0f172a;
  color: #e5e7eb;
}

.auth-field input::placeholder {
  color: #94a3b8;
}

.auth-alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.auth-alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.auth-btn {
  width: auto !important;
  margin-top: 6px;
}

.auth-card-register {
  max-width: 100%;
}

.auth-shell-register {
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.35fr);
}

@media (max-width: 980px) {
  .auth-shell,
  .auth-shell-register {
    grid-template-columns: 1fr;
  }
}

/* Alibaba-style header category nav */
.ali-nav {
  background: #ffffff !important;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #e2e8f0 !important;
}

.ali-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ali-cats {
  position: relative;
  flex: 0 0 auto;
}

.ali-cat-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe4ef;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ali-cats-panel {
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  width: min(940px, calc(100vw - 20px));
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  box-shadow: 0 26px 46px rgba(15, 23, 42, 0.18);
  display: none;
  z-index: 90;
  overflow: hidden;
}

.ali-cats-panel.open {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.ali-cats-left {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  max-height: 420px;
  overflow: auto;
  padding: 8px;
}

.ali-cat-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}

.ali-cat-item:hover,
.ali-cat-item.active {
  background: #eaf2ff;
  color: #075985;
}

.ali-cats-right {
  padding: 12px;
  max-height: 420px;
  overflow: auto;
}

.ali-cat-pane {
  display: none;
}

.ali-cat-pane.active {
  display: block;
}

.ali-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ali-pane-head h3 {
  margin: 0;
  font-size: 20px;
  color: #0f172a;
}

.ali-pane-head a {
  color: #0369a1;
  font-size: 12px;
  text-decoration: none;
}

.ali-pane-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ali-pane-link {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
}

.ali-pane-link:hover {
  border-color: #7dd3fc;
  background: #f0f9ff;
}

.ali-pane-dot {
  color: #0ea5e9;
  font-size: 14px;
}

@media (max-width: 900px) {
  .ali-nav-inner {
    overflow-x: auto;
    padding: 6px 10px;
  }
  .ali-cats-panel.open {
    position: fixed;
    left: 8px;
    right: 8px;
    top: 120px;
    width: auto;
    max-height: 70vh;
    grid-template-columns: 1fr;
  }
  .ali-cats-left {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
    max-height: 180px;
  }
  .ali-pane-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Header content width aligned with hero section */
.topbar {
  justify-content: center !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.topbar-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 900px) {
  .topbar-inner {
    gap: 8px;
  }
}

/* Header balance: compact left, wider center */
.topbar-inner .topbar-left {
  flex: 0 0 92px;
  min-width: 92px;
}

.topbar-inner .topbar-center {
  flex: 1 1 auto;
  padding: 0 6px !important;
}

.topbar-inner .topbar-right {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .topbar-inner .topbar-left {
    flex-basis: 74px;
    min-width: 74px;
  }
  .topbar-inner .topbar-center {
    padding: 0 4px !important;
  }
}

/* Remove left category chip from search bar */
.topbar-center .search-bar {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

/* Hero section: light blue premium highlight theme */
.hero-section {
  gap: 20px !important;
}

.hero-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 52%, #f8fbff 100%) !important;
  border: 1px solid #c7e3ff !important;
  box-shadow: 0 18px 34px rgba(14, 116, 144, 0.12) !important;
}

.hero-content h1 {
  color: #0f172a !important;
}

.hero-content p {
  color: #334155 !important;
}

.hero-kicker {
  background: #ffffff !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.16);
}

.hero-bullets {
  color: #334155 !important;
}

.hero-image {
  border: 1px solid #dbeafe;
  box-shadow: 0 14px 26px rgba(2, 132, 199, 0.14);
}

.gradient-bg {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8, #60a5fa) !important;
}

.gradient-bg-2 {
  background: linear-gradient(135deg, #38bdf8, #818cf8, #22d3ee) !important;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.65) !important;
  color: #0c4a6e !important;
  border: 1px solid rgba(186, 230, 253, 0.9);
}

.hero-stats div {
  color: #e0f2fe !important;
}

.hero-stats strong {
  color: #ffffff !important;
}

.side-deals {
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%) !important;
  border: 1px solid #dbeafe !important;
  box-shadow: 0 16px 28px rgba(14, 116, 144, 0.1) !important;
}

/* Light blue highlights for trust/testimonials/cta */
.trust-inner {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 52%, #f8fbff 100%) !important;
  border: 1px solid #c7e3ff !important;
  box-shadow: 0 16px 28px rgba(14, 116, 144, 0.1) !important;
}

.trust-item {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid #dbeafe;
}

.trust-item strong {
  color: #0f172a !important;
}

.trust-item span {
  color: #475569 !important;
}

.testimonials-grid .t-card {
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%) !important;
  border: 1px solid #dbeafe !important;
  color: #0f172a !important;
  box-shadow: 0 14px 24px rgba(14, 116, 144, 0.09);
}

.testimonials-grid .t-card span {
  color: #64748b !important;
}

.b2b-cta-strip {
  background: linear-gradient(90deg, #e0f2fe 0%, #eff6ff 48%, #f0f9ff 100%) !important;
  color: #0f172a !important;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  box-shadow: 0 16px 28px rgba(14, 116, 144, 0.1);
}

.b2b-cta-text {
  color: #0f172a !important;
  font-weight: 600;
}

/* Mobile app-like polish: trust/highlight/bottom nav */
@media (max-width: 768px) {
  .trust-strip,
  .highlight-grid,
  .b2b-cta-strip {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .trust-inner {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    border-radius: 14px !important;
    padding: 10px !important;
  }

  .trust-item {
    border-radius: 12px !important;
    padding: 10px !important;
    gap: 10px !important;
  }

  .trust-ic {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
    font-size: 14px;
  }

  .trust-item strong {
    font-size: 13px !important;
    line-height: 1.2;
  }

  .trust-item span {
    font-size: 11px !important;
    line-height: 1.35;
  }

  .highlight-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .highlight-card {
    border-radius: 12px !important;
    padding: 10px !important;
    gap: 5px !important;
  }

  .hc-ic {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
  }

  .hc-title {
    font-size: 13px !important;
    line-height: 1.25;
  }

  .hc-sub {
    font-size: 11px !important;
    line-height: 1.35;
  }

  .b2b-cta-strip {
    border-radius: 12px !important;
    padding: 12px !important;
  }

  .b2b-cta-inner {
    gap: 10px !important;
    align-items: stretch !important;
  }

  .b2b-cta-text {
    font-size: 13px !important;
    line-height: 1.45;
  }

  .mobile-bottom-nav {
    padding: 7px 8px max(8px, env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #cfe0f6 !important;
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.12) !important;
    backdrop-filter: blur(10px);
  }

  .mobile-bottom-nav-item {
    border-radius: 12px !important;
    min-height: 56px !important;
    gap: 3px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
  }

  .mobile-bottom-nav-item:hover,
  .mobile-bottom-nav-item:active {
    background: #eaf3ff !important;
    color: #0f172a !important;
  }

  .mbn-ic {
    font-size: 16px !important;
  }

  .mbn-tx {
    font-size: 10px !important;
  }
}

/* Tablet/mobile responsive tuning */
@media (max-width: 1080px) {
  .main-nav {
    top: 65px !important;
  }

  .hero-content h1 {
    font-size: clamp(22px, 4.4vw, 30px) !important;
    line-height: 1.2;
  }

  .section-header h2,
  .category-header h1,
  .cart-page-title,
  .product-detail-title {
    font-size: clamp(18px, 3.4vw, 24px) !important;
    line-height: 1.25;
  }

  /* Icon-heavy feature cards in grid */
  .highlight-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .trust-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .supplier-grid,
  .rfq-steps,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  /* Footer links in clear responsive grid */
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .footer-col {
    display: grid;
    gap: 0px;
  }
}

@media (max-width: 768px) {
  .footer {
    text-align: left !important;
  }

  .footer-trust-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto;
    grid-template-columns: none !important;
    -webkit-overflow-scrolling: touch;
  }

  .footer-trust-row span {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  h2,
  .section-header h2 {
    font-size: 18px !important;
  }

  /* Mobile-only product carousel (owl-like swipe) */
  .mobile-products-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .mobile-products-carousel .product-card {
    flex: 0 0 78%;
    max-width: 78%;
    scroll-snap-align: start;
  }

  .mobile-products-carousel::-webkit-scrollbar {
    height: 6px;
  }

  .mobile-products-carousel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
  }

  .section-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 4px !important;
  }

  .section-header .section-subtitle {
    display: block;
    width: 100%;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
  }
}

/* Enquiry modal redesign */
#enquiryModal .modal-box {
  max-width: 760px !important;
  border-radius: 16px;
  border: 1px solid #dbe4ef;
  box-shadow: 0 26px 46px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

#enquiryModal .modal-header {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border-bottom: 1px solid #e2e8f0;
}

#enquiryModal .modal-header h3 {
  color: #0f172a;
  font-weight: 800;
}

#enquiryModal .modal-body {
  background: #ffffff;
  padding: 18px 20px 14px;
}

#enquiryModal .enq-top-note {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f9ff, #f8fafc);
  padding: 12px;
  margin-bottom: 14px;
}

#enquiryModal .enq-top-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

#enquiryModal .enq-top-note p {
  margin: 0;
  color: #475569;
  font-size: 12px;
}

#enquiryModal .enq-top-pills {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#enquiryModal .enq-top-pills span {
  border: 1px solid #bae6fd;
  background: #ffffff;
  color: #0369a1;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

#enquiryModal .enq-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#enquiryModal .modal-body .form-group {
  margin-bottom: 12px;
}

#enquiryModal .modal-body label {
  font-weight: 700;
  color: #334155;
}

#enquiryModal .modal-body input,
#enquiryModal .modal-body textarea {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
}

#enquiryModal .modal-body input:focus,
#enquiryModal .modal-body textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

#enquiryModal .enq-terms label {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
}

#enquiryModal .enq-footer {
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

@media (max-width: 700px) {
  #enquiryModal .enq-row {
    grid-template-columns: 1fr;
  }
}

/* Final mobile consistency pass: header/footer/nav + category/product scroll fixes */
@media (max-width: 768px) {
  body {
    font-size: 14px;
    line-height: 1.45;
    padding-bottom: 78px !important;
  }

  .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 110 !important;
    padding: 8px 8px !important;
    min-height: 56px;
  }

  .topbar-inner {
    gap: 6px !important;
    align-items: center !important;
  }

  .topbar-inner .topbar-left {
    flex-basis: 64px !important;
    min-width: 64px !important;
  }

  .topbar .logo-icon {
    width: 72% !important;
    max-width: 72px;
  }

  .topbar-inner .topbar-center {
    padding: 0 2px !important;
  }

  .topbar-center .search-bar {
    width: 100% !important;
    max-width: none !important;
    min-height: 40px;
  }

  .topbar-right {
    gap: 6px !important;
  }

  .main-nav {
    top: 56px !important;
    z-index: 100 !important;
  }

  .page-main {
    padding-top: 14px !important;
  }

  /* Prevent sticky jump on product/category while scrolling mobile */
  .product-detail-page .product-detail-gallery {
    position: static !important;
    top: auto !important;
  }

  .category-page .category-filter-sidebar {
    position: static !important;
    top: auto !important;
  }

  .footer {
    padding-top: 16px !important;
    padding-bottom: 12px !important;
  }

  .footer-cols {
    gap: 8px !important;
  }

  .footer-col h4 {
    font-size: 13px !important;
    margin-bottom: 4px;
  }

  .footer-col a {
    font-size: 12px !important;
    line-height: 1.35;
  }

  .mobile-bottom-nav {
    min-height: 62px;
    bottom: 0 !important;
    z-index: 120 !important;
  }

  .mobile-bottom-nav-item {
    min-height: 54px !important;
    padding: 2px 0;
  }
}

/* Extra-small phones micro-tuning */
@media (max-width: 640px) {
  .hero-content h1 {
    font-size: clamp(20px, 5vw, 26px) !important;
  }

  .section-header h2,
  .category-header h1,
  .cart-page-title,
  .product-detail-title {
    font-size: 17px !important;
  }

  .products-section,
  .trust-strip,
  .highlight-grid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .products-grid .product-card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .hero-content p,
  .section-header .section-subtitle {
    font-size: 11px !important;
  }

  .mobile-products-carousel .product-card {
    flex-basis: 82%;
    max-width: 82%;
  }

  .footer-col a {
    font-size: 11px !important;
  }
}