/* ================================================================
   StoreStep.in – design system
   Built on Bootstrap 5.3 with brand tokens, components & utilities
   ================================================================ */

:root {
  --ss-primary: #111111;
  --ss-primary-600: #000000;
  --ss-primary-700: #000000;
  --ss-primary-soft: #F2F2F2;
  --ss-violet: #2A2A2A;
  --ss-accent: #FFFFFF;
  --ss-accent-soft: #EDEDED;
  --ss-success: #111111;
  --ss-success-soft: #E8E8E8;
  --ss-danger: #B3261E;
  --ss-danger-soft: #F0E0DF;
  --ss-info-soft: #EBEBEB;
  --ss-ink: #111111;
  --ss-ink-2: #333333;
  --ss-muted: #6B6B6B;
  --ss-line: #E3E3E3;
  --ss-bg: #F7F7F7;
  --ss-surface: #FFFFFF;
  --ss-radius: 14px;
  --ss-radius-sm: 10px;
  --ss-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --ss-shadow-lg: 0 20px 50px -20px rgba(0, 0, 0, .35);
  --ss-grad: linear-gradient(135deg, #000000 0%, #2A2A2A 100%);

  --bs-primary: #111111;
  --bs-primary-rgb: 17, 17, 17;
  --bs-link-color: #111111;
  --bs-link-hover-color: #000000;
  --bs-body-font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --bs-body-color: #111111;
  --bs-body-bg: #F7F7F7;
  --bs-border-color: #E3E3E3;
  --bs-border-radius: 10px;
}

html { scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, .display-5, .display-6 { font-weight: 800; letter-spacing: -.02em; }
.text-muted { color: var(--ss-muted) !important; }
.text-ink-2 { color: var(--ss-ink-2); }
.fw-800 { font-weight: 800; }
.fs-7 { font-size: .85rem; }
.fs-8 { font-size: .75rem; }
.lh-tight { line-height: 1.2; }
.text-gradient { background: var(--ss-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--ss-radius-sm); font-weight: 600; padding: .6rem 1.1rem; }
.btn-sm { padding: .4rem .8rem; font-size: .85rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn-primary { background: var(--ss-primary); border-color: var(--ss-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--ss-primary-600); border-color: var(--ss-primary-600); }
.btn-gradient { background: var(--ss-grad); color: #fff; border: 0; box-shadow: var(--ss-shadow-lg); }
.btn-gradient:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }
.btn-accent { background: var(--ss-accent); color: #111111; border-color: var(--ss-accent); }
.btn-accent:hover { background: #E6E6E6; border-color: #E6E6E6; color: #111111; }
.btn-outline-primary { color: var(--ss-primary); border-color: var(--ss-primary); }
.btn-outline-primary:hover { background: var(--ss-primary); border-color: var(--ss-primary); }
.btn-soft { background: var(--ss-primary-soft); color: var(--ss-primary-700); border: 0; }
.btn-soft:hover { background: #D9D9D9; color: var(--ss-primary-700); }
.btn-white { background: #fff; color: var(--ss-ink); border: 1px solid var(--ss-line); }
.btn-white:hover { background: #F7F7F7; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: var(--ss-radius-sm); padding: .65rem .9rem; border-color: var(--ss-line); }
.form-control:focus, .form-select:focus { border-color: var(--ss-primary); box-shadow: 0 0 0 .2rem rgba(0, 0, 0, .12); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--ss-ink-2); }
.form-check-input:checked { background-color: var(--ss-primary); border-color: var(--ss-primary); }
.input-group-text { border-radius: var(--ss-radius-sm); border-color: var(--ss-line); background: #F7F7F7; }
.form-text { color: var(--ss-muted); }
.field-validation-error { color: var(--ss-danger); font-size: .85rem; display: block; margin-top: .3rem; }
.input-validation-error { border-color: var(--ss-danger) !important; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }

/* ---------- Cards & surfaces ---------- */
.card { border: 1px solid var(--ss-line); border-radius: var(--ss-radius); box-shadow: var(--ss-shadow); background: var(--ss-surface); }
.card-header { background: transparent; border-bottom: 1px solid var(--ss-line); font-weight: 700; padding: 1rem 1.25rem; }
.surface { background: var(--ss-surface); border: 1px solid var(--ss-line); border-radius: var(--ss-radius); box-shadow: var(--ss-shadow); }
.soft { background: var(--ss-primary-soft); border-radius: var(--ss-radius); }
.badge { font-weight: 600; border-radius: 999px; padding: .4em .75em; }
.badge-soft-primary { background: #111111; color: #fff; }
.badge-soft-success { background: #E8E8E8; color: #111111; border: 1px solid #111111; }
.badge-soft-warning { background: #FFFFFF; color: #111111; border: 1px dashed #111111; }
.badge-soft-danger { background: var(--ss-danger-soft); color: #8C1D18; }
.badge-soft-info { background: #F3F3F3; color: #111111; border: 1px solid #BDBDBD; }
.badge-soft-muted { background: #F3F3F3; color: var(--ss-ink-2); }
.table { --bs-table-border-color: var(--ss-line); }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ss-muted); font-weight: 700; border-bottom-width: 1px; }
.table > :not(caption) > * > * { padding: .85rem 1rem; vertical-align: middle; }
.alert { border-radius: var(--ss-radius-sm); border: 0; }
.dropdown-menu { border-radius: var(--ss-radius-sm); border-color: var(--ss-line); box-shadow: var(--ss-shadow); padding: .5rem; }
.dropdown-item { border-radius: 8px; padding: .55rem .8rem; font-weight: 500; }
.dropdown-item:active { background: var(--ss-primary); }
.breadcrumb { font-size: .875rem; }
.breadcrumb-item + .breadcrumb-item::before { content: "›"; }
.nav-pills .nav-link { border-radius: 999px; font-weight: 600; color: var(--ss-ink-2); }
.nav-pills .nav-link.active { background: var(--ss-primary); }
.page-link { border-radius: 10px !important; margin: 0 .15rem; border-color: var(--ss-line); color: var(--ss-ink-2); font-weight: 600; }
.page-item.active .page-link { background: var(--ss-primary); border-color: var(--ss-primary); }
.progress { border-radius: 999px; background: var(--ss-line); }

/* ---------- Header ---------- */
.ss-topbar { background: #000000; color: #BDBDBD; font-size: .8rem; }
.ss-topbar a { color: #E3E3E3; text-decoration: none; }
.ss-topbar a:hover { color: #fff; }
.ss-header { background: var(--ss-surface); border-bottom: 1px solid var(--ss-line); position: sticky; top: 0; z-index: 1030; }
.ss-header .navbar-brand img { height: 40px; width: auto; }
.ss-search { max-width: 640px; flex: 1; }
.ss-search .form-control { border-radius: 999px 0 0 999px; padding-left: 1.25rem; border-right: 0; height: 46px; }
.ss-search .form-select { max-width: 150px; border-radius: 0; border-right: 0; height: 46px; font-size: .9rem; }
.ss-search .btn { border-radius: 0 999px 999px 0; padding: 0 1.25rem; height: 46px; }
.ss-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ss-ink-2); background: transparent; border: 0; text-decoration: none; }
.ss-icon-btn:hover { background: var(--ss-primary-soft); color: var(--ss-primary-700); }
.ss-icon-btn .count { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; border-radius: 999px; background: #111111; color: #fff; font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.ss-catnav { background: var(--ss-surface); border-bottom: 1px solid var(--ss-line); }
.ss-catnav .nav-link { font-size: .9rem; font-weight: 600; color: var(--ss-ink-2); padding: .7rem .9rem; white-space: nowrap; }
.ss-catnav .nav-link:hover, .ss-catnav .nav-link.active { color: var(--ss-primary); }
.ss-catnav .nav { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.ss-catnav .nav::-webkit-scrollbar { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--ss-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.6rem; }

/* ---------- Hero ---------- */
.ss-hero { background: #111111; color: #fff; position: relative; overflow: hidden; border-radius: 0 0 32px 32px; }
.ss-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 85% 20%, rgba(255, 255, 255, .12), transparent 60%), radial-gradient(500px 300px at 10% 90%, rgba(255, 255, 255, .10), transparent 60%); }
.ss-hero > * { position: relative; }
.ss-hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; }
.ss-hero .lead { color: #CFCFCF; font-size: 1.1rem; }
.ss-hero .chip { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 999px; padding: .35rem .85rem; font-size: .85rem; font-weight: 600; text-decoration: none; backdrop-filter: blur(6px); }
.ss-hero .chip:hover { background: rgba(255, 255, 255, .24); }
.ss-hero-art { position: relative; min-height: 340px; }
.ss-hero-card { position: absolute; background: #fff; color: var(--ss-ink); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); padding: 1rem; width: 220px; animation: float 7s ease-in-out infinite; }
.ss-hero-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; }
.ss-hero-card.c1 { top: 10px; left: 0; }
.ss-hero-card.c2 { top: 120px; right: 0; animation-delay: -2s; }
.ss-hero-card.c3 { bottom: -10px; left: 90px; animation-delay: -4s; width: 240px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.ss-stat { font-size: 1.6rem; font-weight: 800; }
.ss-stat small { display: block; font-size: .8rem; font-weight: 500; color: #A3A3A3; }

/* ---------- Section headings ---------- */
.section { padding: 3.5rem 0; }
.section-title { font-size: 1.6rem; margin-bottom: .25rem; }
.section-sub { color: var(--ss-muted); margin-bottom: 0; }
.eyebrow { display: inline-block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--ss-primary); margin-bottom: .5rem; }

/* ---------- Category tiles ---------- */
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.25rem .75rem; background: var(--ss-surface); border: 1px solid var(--ss-line); border-radius: var(--ss-radius); text-decoration: none; color: var(--ss-ink); text-align: center; transition: all .18s ease; height: 100%; }
.cat-tile i { font-size: 1.6rem; width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--ss-primary-soft); color: var(--ss-primary); }
.cat-tile.service i { background: #111111; color: #fff; }
.cat-tile span { font-weight: 700; font-size: .9rem; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--ss-shadow-lg); border-color: #111111; }

/* ---------- Listing card ---------- */
.listing-card { display: flex; flex-direction: column; height: 100%; background: var(--ss-surface); border: 1px solid var(--ss-line); border-radius: var(--ss-radius); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; position: relative; }
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--ss-shadow-lg); border-color: #111111; }
.listing-card .thumb { position: relative; aspect-ratio: 4 / 3; background: #F3F3F3; overflow: hidden; display: block; }
.listing-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.listing-card:hover .thumb img { transform: scale(1.04); }
.listing-card .ribbon { position: absolute; top: 10px; left: 10px; display: flex; gap: .35rem; }
.listing-card .wish { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 0; color: var(--ss-ink-2); display: inline-flex; align-items: center; justify-content: center; }
.listing-card .wish:hover, .listing-card .wish.active { color: var(--ss-danger); }
.listing-card .body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.listing-card .title { font-weight: 700; font-size: .95rem; line-height: 1.3; color: var(--ss-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-card .title:hover { color: var(--ss-primary); }
.listing-card .seller { font-size: .78rem; color: var(--ss-muted); }
.listing-card .price { font-weight: 800; font-size: 1.1rem; }
.listing-card .price small { font-weight: 500; color: var(--ss-muted); text-decoration: line-through; font-size: .8rem; margin-left: .35rem; }
.listing-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .5rem; }
.rating { color: #111111; font-size: .85rem; white-space: nowrap; }
.rating .n { color: var(--ss-muted); margin-left: .25rem; }
.type-pill { font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: 6px; padding: .2rem .5rem; }
.type-pill.product { background: var(--ss-primary-soft); color: var(--ss-primary-700); }
.type-pill.service { background: #111111; color: #fff; }

/* ---------- Listing detail ---------- */
.gallery-main { aspect-ratio: 1 / 1; background: #F3F3F3; border-radius: var(--ss-radius); overflow: hidden; border: 1px solid var(--ss-line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs img { width: 68px; height: 68px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--ss-primary); }
.price-xl { font-size: 2rem; font-weight: 800; }
.spec-table td:first-child { color: var(--ss-muted); width: 40%; }
.qty { display: inline-flex; border: 1px solid var(--ss-line); border-radius: 10px; overflow: hidden; }
.qty button { width: 40px; border: 0; background: #F7F7F7; font-weight: 700; }
.qty input { width: 54px; text-align: center; border: 0; font-weight: 700; }
.trust { display: flex; gap: .75rem; align-items: center; font-size: .85rem; color: var(--ss-ink-2); }
.trust i { color: #111111; font-size: 1.1rem; }

/* ---------- Steps / how it works ---------- */
.step-card { background: var(--ss-surface); border: 1px solid var(--ss-line); border-radius: var(--ss-radius); padding: 1.5rem; height: 100%; }
.step-num { width: 44px; height: 44px; border-radius: 14px; background: var(--ss-grad); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }

/* ---------- Order timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--ss-line); }
.timeline li { position: relative; padding-left: 2rem; padding-bottom: 1.25rem; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--ss-primary); box-shadow: 0 0 0 4px var(--ss-primary-soft); }
.timeline li:last-child { padding-bottom: 0; }
.status-steps { display: flex; gap: .5rem; }
.status-steps .s { flex: 1; text-align: center; font-size: .75rem; font-weight: 700; color: var(--ss-muted); }
.status-steps .s .bar { height: 6px; border-radius: 999px; background: var(--ss-line); margin-bottom: .4rem; }
.status-steps .s.done .bar { background: #111111; }
.status-steps .s.done { color: #111111; }

/* ---------- Dashboard / account ---------- */
.side-nav .nav-link { display: flex; align-items: center; gap: .7rem; border-radius: 10px; color: var(--ss-ink-2); font-weight: 600; padding: .65rem .9rem; }
.side-nav .nav-link i { width: 20px; text-align: center; color: var(--ss-muted); }
.side-nav .nav-link.active, .side-nav .nav-link:hover { background: var(--ss-primary-soft); color: var(--ss-primary-700); }
.side-nav .nav-link.active i { color: var(--ss-primary); }
.kpi { background: var(--ss-surface); border: 1px solid var(--ss-line); border-radius: var(--ss-radius); padding: 1.2rem 1.3rem; display: flex; align-items: center; gap: 1rem; height: 100%; }
.kpi .ico { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--ss-primary-soft); color: var(--ss-primary); flex-shrink: 0; }
.kpi .val { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.kpi .lbl { font-size: .8rem; color: var(--ss-muted); font-weight: 600; }
.kpi.accent .ico { background: #111111; color: #fff; }
.kpi.success .ico { background: #E8E8E8; color: #111111; }
.kpi.info .ico { background: #F3F3F3; color: #111111; }
.img-drop { border: 2px dashed #BFBFBF; border-radius: var(--ss-radius); padding: 1.5rem; text-align: center; color: var(--ss-muted); background: #FAFAFA; }
.img-drop:hover { border-color: var(--ss-primary); background: var(--ss-primary-soft); }
.thumb-sm { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ss-line); background: #F3F3F3; }
.thumb-md { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid var(--ss-line); background: #F3F3F3; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 220px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ss-grad); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 10%, rgba(255, 255, 255, .2), transparent 60%); }
.auth-side > * { position: relative; }
.auth-form { padding: 3rem; display: flex; align-items: center; justify-content: center; }
.auth-form .inner { width: 100%; max-width: 440px; }
@media (max-width: 991px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- Footer ---------- */
.ss-footer { background: #000000; color: #9A9A9A; padding: 3.5rem 0 1.5rem; margin-top: 3rem; }
.ss-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.ss-footer a { color: #BDBDBD; text-decoration: none; display: block; padding: .2rem 0; font-size: .9rem; }
.ss-footer a:hover { color: #fff; }
.ss-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 1.25rem; margin-top: 2rem; font-size: .85rem; }
.ss-footer .social a { display: inline-flex; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .06); align-items: center; justify-content: center; margin-right: .4rem; }
.ss-footer .social a:hover { background: #fff; color: #111; }

/* ---------- Misc ---------- */
.empty { text-align: center; padding: 3rem 1rem; color: var(--ss-muted); }
.empty i { font-size: 3rem; color: #BFBFBF; display: block; margin-bottom: .75rem; }
.sticky-lg-top { top: 96px; }
.toast-container { z-index: 1090; }
.hover-lift { transition: transform .18s ease, box-shadow .18s ease; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--ss-shadow-lg); }
.cover-banner { height: 180px; background: var(--ss-grad); border-radius: var(--ss-radius) var(--ss-radius) 0 0; background-size: cover; background-position: center; }
.store-logo { width: 96px; height: 96px; border-radius: 20px; border: 4px solid #fff; object-fit: cover; background: #fff; margin-top: -48px; box-shadow: var(--ss-shadow); }
@media (max-width: 767px) {
  .section { padding: 2.25rem 0; }
  .ss-hero-art { display: none; }
  .ss-header .navbar-brand img { height: 32px; }
}

/* ---------- Monochrome overrides ---------- */
.bg-danger, .badge.bg-danger { background: #111111 !important; color: #fff; }
.bg-dark { background: #fff !important; color: #111 !important; border: 1px solid #111; }
.btn-outline-danger { color: var(--ss-danger); border-color: var(--ss-danger); }
.text-primary { color: #111111 !important; }
.text-success { color: #111111 !important; }
.text-warning { color: #111111 !important; }
.alert-success, .alert-info, .alert-warning { background: #F3F3F3; color: #111; border-left: 4px solid #111; }
.alert-danger { background: #F0E0DF; color: #8C1D18; }
.text-bg-success, .text-bg-primary { background: #111 !important; color: #fff !important; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: #111; }
.ss-hero .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.avatar { background: #111111; }
.step-num { background: #111111; }
.soft { background: #F3F3F3; }
.img-drop { border-color: #BDBDBD; }
.img-drop:hover { border-color: #111; background: #F3F3F3; }
.form-check-input:checked { background-color: #111; border-color: #111; }
.page-item.active .page-link { background: #111; border-color: #111; }
.nav-pills .nav-link.active { background: #111; }
.dropdown-item:active { background: #111; }
.cover-banner { background: #111111; }
.listing-card .wish.active { color: #111; }

/* ---------- Links & hover: always black ---------- */
:root {
  --bs-link-color: #111111;
  --bs-link-hover-color: #000000;
  --bs-link-color-rgb: 17, 17, 17;
  --bs-link-hover-color-rgb: 0, 0, 0;
  --bs-nav-link-color: #111111;
  --bs-nav-link-hover-color: #000000;
  --bs-navbar-color: #111111;
  --bs-navbar-hover-color: #000000;
  --bs-navbar-active-color: #000000;
}
.btn-link, .btn-link:hover, .btn-link:focus { color: #111111; }
.nav-link, .nav-link:hover, .nav-link:focus, .navbar-nav .nav-link.active { color: #111111; }
.ss-catnav .nav-link:hover, .ss-catnav .nav-link.active { color: #000000; text-decoration: underline; text-underline-offset: 4px; }
.ss-catnav .nav-link.text-primary { color: #111111 !important; }
.side-nav .nav-link:hover, .side-nav .nav-link.active { background: #111111; color: #fff; }
.side-nav .nav-link:hover i, .side-nav .nav-link.active i { color: #fff; }
.dropdown-item:hover, .dropdown-item:focus { background: #111111; color: #fff; }
.dropdown-item.text-danger:hover { background: #111111; color: #fff; }
.breadcrumb-item a, .breadcrumb-item a:hover { color: #111111; }
.breadcrumb-item.active { color: #6B6B6B; }
.page-link:hover, .page-link:focus { background: #111111; border-color: #111111; color: #fff; box-shadow: none; }
.ss-icon-btn:hover { background: #111111; color: #fff; }
.btn-white:hover, .btn-white:focus { background: #111111; color: #fff; border-color: #111111; }
.btn-soft:hover, .btn-soft:focus { background: #111111; color: #fff; }
.btn-outline-primary { color: #111111; border-color: #111111; }
.btn-outline-primary:hover { background: #111111; border-color: #111111; color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: #000000; border-color: #000000; }
.listing-card .title:hover, .listing-card .wish:hover { color: #000000; }
.accordion-button:not(.collapsed) { background: #F3F3F3; color: #111111; box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(0, 0, 0, .12); border-color: #111111; }
.ss-topbar a:hover, .ss-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.text-decoration-none:hover { text-decoration: none !important; }
.form-control:focus, .form-select:focus { border-color: #111111; box-shadow: 0 0 0 .2rem rgba(0, 0, 0, .12); }
.text-danger:not(.btn):not(.dropdown-item) { color: #8C1D18 !important; }

/* ---------- Inverted buttons: white text on black, at every state ---------- */
.btn-primary, a.btn-primary, .btn-primary:hover, a.btn-primary:hover, .btn-primary:focus, a.btn-primary:focus, .btn-primary:active, a.btn-primary:active, .btn-primary:visited,
.btn-dark, a.btn-dark, .btn-dark:hover, a.btn-dark:hover,
.btn-gradient, a.btn-gradient, .btn-gradient:hover, a.btn-gradient:hover,
.btn-white:hover, a.btn-white:hover, .btn-white:focus, a.btn-white:focus, .btn-white:active, a.btn-white:active,
.btn-soft:hover, a.btn-soft:hover, .btn-soft:focus, a.btn-soft:focus, .btn-soft:active, a.btn-soft:active,
.btn-outline-primary:hover, a.btn-outline-primary:hover, .btn-outline-primary:focus, a.btn-outline-primary:focus, .btn-outline-primary:active, a.btn-outline-primary:active,
.btn-outline-light:hover, a.btn-outline-light:hover,
.btn-outline-danger:hover, a.btn-outline-danger:hover,
.page-link:hover, a.page-link:hover, .page-item.active .page-link,
.side-nav .nav-link:hover, .side-nav a.nav-link:hover, .side-nav .nav-link.active, .side-nav a.nav-link.active,
.dropdown-item:hover, a.dropdown-item:hover, .dropdown-item:focus, a.dropdown-item:focus, button.dropdown-item:hover,
.ss-icon-btn:hover, a.ss-icon-btn:hover,
.nav-pills .nav-link.active, .nav-pills a.nav-link.active,
.badge-soft-primary, a.badge-soft-primary,
.ss-footer .social a:hover { color: #fff !important; }

.btn-primary:hover, a.btn-primary:hover, .btn-primary:focus, a.btn-primary:focus,
.btn-white:hover, a.btn-white:hover, .btn-soft:hover, a.btn-soft:hover,
.btn-outline-primary:hover, a.btn-outline-primary:hover,
.btn-outline-danger:hover, a.btn-outline-danger:hover { background: #000000; border-color: #000000; }
.btn-outline-light:hover, a.btn-outline-light:hover { background: #fff; color: #111 !important; border-color: #fff; }

/* Icons inside inverted controls follow the text */
.btn-white:hover i, .btn-soft:hover i, .btn-primary i, .side-nav .nav-link:hover i, .side-nav .nav-link.active i, .dropdown-item:hover i, .ss-icon-btn:hover i, .ss-icon-btn:hover .count { color: #fff; }
.ss-icon-btn:hover .count { background: #fff; color: #111; }

/* White button on black surfaces (hero CTA): black text, white stays white on hover */
.btn-accent, a.btn-accent, .btn-accent:visited { background: #fff; color: #111 !important; border-color: #fff; }
.btn-accent:hover, a.btn-accent:hover, .btn-accent:focus, a.btn-accent:focus { background: #E6E6E6; border-color: #E6E6E6; color: #111 !important; }

/* ---------- Safety net: any black-background button gets white text ---------- */
.btn-primary { --bs-btn-color: #fff; --bs-btn-bg: #111111; --bs-btn-border-color: #111111; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #000000; --bs-btn-hover-border-color: #000000; --bs-btn-active-color: #fff; --bs-btn-active-bg: #000000; --bs-btn-active-border-color: #000000; --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #555555; --bs-btn-disabled-border-color: #555555; }
.btn-dark { --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; }
.btn-primary, .btn-primary *, .btn-dark, .btn-dark * { color: #fff !important; }

/* ---------- Buttons on black surfaces (hero / CTA): always white text ---------- */
.btn-outline-light, a.btn-outline-light, a.btn-outline-light:visited, .btn-outline-light:focus, a.btn-outline-light:focus { color: #fff !important; border-color: rgba(255, 255, 255, .7); background: transparent; }
.btn-outline-light:hover, a.btn-outline-light:hover, .btn-outline-light:active, a.btn-outline-light:active { background: #fff; color: #111 !important; border-color: #fff; }
.ss-hero a:not(.btn), .ss-hero a:not(.btn):visited { color: #fff; }
.ss-hero .chip, .ss-hero a.chip, .ss-hero a.chip:visited, .ss-hero a.chip:hover { color: #fff; }
.ss-hero .ss-hero-card, .ss-hero a.ss-hero-card, .ss-hero a.ss-hero-card:visited { color: #111; }
/* visited links must never override a button's own text colour */
a.btn:visited { color: inherit; }
a.btn-white:visited, a.btn-soft:visited, a.btn-outline-primary:visited { color: #111; }

/* ---------- Links on dark surfaces: light at every state, including visited ---------- */
.ss-footer a, .ss-footer a:visited { color: #CFCFCF; }
.ss-footer a:hover, .ss-footer h6 a { color: #fff; }
.ss-topbar a, .ss-topbar a:visited { color: #E3E3E3; }
.ss-topbar a:hover { color: #fff; }
.ss-hero a:not(.btn):not(.ss-hero-card), .ss-hero a:not(.btn):not(.ss-hero-card):visited, .ss-hero a:not(.btn):not(.ss-hero-card):hover { color: #fff; }
.text-white, a.text-white:visited, a.text-white:hover { color: #fff !important; }
.bg-dark a, .bg-dark a:visited, .text-bg-dark a, .text-bg-dark a:visited { color: #fff; }
/* Links on light surfaces: black at every state */
a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):visited { color: inherit; }
.card a:not(.btn):visited, .surface a:not(.btn):visited, .soft a:not(.btn):visited { color: #111111; }
.breadcrumb a:visited { color: #111111; }
.listing-card a:visited, .listing-card .title:visited { color: #111111; }
.ss-catnav .nav-link:visited { color: #111111; }
.dropdown-item:visited { color: #111111; }

/* ---------- No underlines on links (hover feedback is colour/weight only) ---------- */
a, a:visited, a:hover, a:focus, a:active { text-decoration: none; }
.ss-catnav .nav-link:hover, .ss-catnav .nav-link.active { text-decoration: none; font-weight: 800; }
.ss-topbar a:hover, .ss-footer a:hover { text-decoration: none; }
.form-check-label a, .fs-7 a, .fs-8 a, p a { text-decoration: none; font-weight: 600; }

/* ---------- Full-bleed sections (auth pages) touch the footer ---------- */
main { display: flex; flex-direction: column; }
main > *:last-child { flex: 1 0 auto; }
.ss-footer { margin-top: 0; }
.auth-wrap { min-height: 0; flex: 1 0 auto; }
.auth-side { min-height: 560px; }
