:root{
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;        /* slate-900 */
  --muted: #475569;       /* slate-600 */
  --line: #e2e8f0;        /* slate-200 */
  --brand: #0b63ce;       /* SKF-ish blue */
  --brand-2: #0a4ea3;
  --radius: 16px;
  --maxw: 1200px;
  --focus: 0 0 0 3px rgba(11, 99, 206, .25);
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 500px at 50% -80px, rgba(11,99,206,.16), transparent 60%),
              linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, var(--bg) 100%);
}
a{ color: var(--brand); text-decoration: none; }
a:hover{ text-decoration: underline; }
:focus-visible{ outline: none; box-shadow: var(--focus); border-radius: 10px; }

.container{
  width: calc(100% - 48px);
  width: min(var(--maxw), calc(100% - 48px));
  max-width: 1200px;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Header */
header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226,232,240,.85);
}
.topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
}

.brand{
  display: flex;
  align-items: center;
  min-width: 0;
}
.header-logo{
  height: 50px;
  width: auto;
}

.site-title{
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.site-title strong{
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: .2px;
}
.site-title span, .actions span {
  font-size: 16px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actions{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
.btn:hover{ border-color: rgba(11,99,206,.35); box-shadow: 0 6px 18px rgba(11,99,206,.08); text-decoration: none; }

/* Navigation */

.nav-link{
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  padding: 6px 2px;
  position: relative;
  text-decoration: none;
}
.nav-link:hover{
  color: var(--brand);
  text-decoration: none;
}
.nav-link::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: transparent;
}
.nav-link:hover::after{
  background: var(--brand);
}
.nav-login{
  font-weight: 800;
}

/* Hero */
.hero{
  padding: 40px 0 18px;
}

.kicker{
  display: inline-flex;
  align-items: center;
  color: var(--brand-2);
  font-weight: 800;
  letter-spacing: .4px;
  font-size: 12px;
  text-transform: uppercase;
}
.hero h1{
  margin: 0;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.hero p{
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  max-width: 62ch;
}


/* Categories */
.section{
  padding: 20px 0 24px;
}

.card{
  background: var(--surface);
  border: 1px solid rgba(226,232,240,.95);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15,23,42,.05);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  cursor: pointer;
  min-height: 190px;
  display: flex;
  flex-direction: column;
}
button.card{
  width: 100%;
  padding: 0;
  text-align: left;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(11,99,206,.35);
  box-shadow: 0 16px 34px rgba(15,23,42,.10);
}

.card .thumb{
  height: 140px;
  background: var(--surface);
  border-bottom: 1px solid rgba(226,232,240,.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}
.card .thumb img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .3s ease;
}
.card:hover .thumb img{
  transform: scale(1.05);
}

.card h3{
  margin: 0;
  font-size: 14px;
  letter-spacing: -.1px;
  line-height: 1.2;
}

footer{
  padding: 16px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.footer-links{
  display: flex;
  font-size:16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

/* Dropdown Menus (using Bootstrap) */
.dropdown-menu{
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(2,6,23,.20), 0 0 0 1px rgba(226,232,240,.9);
  padding: 8px;
  min-width: 280px;
  max-width: 320px;
  border: none;
  z-index: 1050;
}

.dropdown-header{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(226,232,240,.8);
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.dropdown-menu .dropdown-list{
  max-height: 400px;
  overflow-y: auto;
}

.dropdown-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  transition: background .12s ease;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  white-space: normal;
}
.dropdown-item:hover{
  background: #f1f5f9;
  color: var(--text);
}
.dropdown-item:active{
  background: #e2e8f0;
  color: var(--text);
}
.dropdown-item .chev-right{
  width: 16px;
  height: 16px;
  opacity: .5;
  flex-shrink: 0;
}

.dropdown-pill{
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-2);
  background: rgba(11,99,206,.10);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(11,99,206,.18);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 520px){
  .container{
    width: calc(100% - 28px);
    width: min(var(--maxw), calc(100% - 28px));
  }
  .topbar{ flex-direction: column; align-items: flex-start; }
  .topbar > *{
    margin-right: 0;
    margin-bottom: 10px;
  }
  .topbar > *:last-child{
    margin-bottom: 0;
  }
  .brand{ width: 100%; }
  .header-logo{ height: 36px; }
  .site-title strong{ font-size: 16px; }
  .actions{
    width: 100%;
    justify-content: flex-start;
    align-items: center;
  }
  .actions > *{
    margin-right: 8px;
  }
  .actions > *:last-child{
    margin-right: 0;
  }
  .actions span{
    white-space: normal;
    font-size: 13px;
  }
  .nav-login{ font-size: 14px; }
  .site-title span{ display: none; }

  .alert.alert-info.d-flex{
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
  }
  .alert.alert-info.d-flex > *{
    margin-bottom: 10px;
  }
  .alert.alert-info.d-flex > *:last-child{
    margin-bottom: 0;
  }
  .alert.alert-info .btn{
    width: 100%;
    justify-content: center;
  }

  footer .d-flex{
    align-items: flex-start !important;
  }
  .footer-links{
    justify-content: flex-start;
    font-size: 13px;
  }
  footer .text-muted{
    font-size: 12px;
  }
}
.transition-up{ transition: transform .2s ease, box-shadow .2s ease; }
.transition-up:hover{ transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,.1) !important; }

/* Bootstrap 5-to-4 utility shims used by current markup */
.fw-bold{ font-weight: 700 !important; }
.rounded-3{ border-radius: .5rem !important; }
.rounded-4{ border-radius: 1rem !important; }
.display-5{
  font-size: 3rem;
  line-height: 1.2;
}
@media (max-width: 1200px){
  .display-5{
    font-size: calc(1.425rem + 2.1vw);
  }
}
.text-primary{ color: var(--brand) !important; }
.g-4{
  margin-top: -24px;
  margin-left: -12px;
  margin-right: -12px;
}
.g-4 > [class*="col-"]{
  margin-top: 24px;
  padding-left: 12px;
  padding-right: 12px;
}
.gap-3{ }
.gap-3 > *{ margin-right: 1rem; }
.gap-3 > *:last-child{ margin-right: 0; }
.flex-column.gap-3 > *{
  margin-right: 0;
  margin-bottom: 1rem;
}
.flex-column.gap-3 > *:last-child{ margin-bottom: 0; }

/* IE-friendly gap fallbacks for custom flex layouts */
.topbar > *{ margin-right: 16px; }
.topbar > *:last-child{ margin-right: 0; }
.brand > *{ margin-right: 14px; }
.brand > *:last-child{ margin-right: 0; }
.actions > *{ margin-right: 20px; }
.actions > *:last-child{ margin-right: 0; }

/* Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.carousel-inner {
  position: relative;
  width: 100%;
  padding-bottom: 50%;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.5);
  border: none;
  color: #0b63ce;
  font-size: 28px;
  font-weight: normal;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 0 0 5px 0;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: rgba(255, 255, 255, 1);
  width: 24px;
  border-radius: 5px;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .carousel-prev {
    left: 8px;
  }

  .carousel-next {
    right: 8px;
  }

  .carousel-dots {
    bottom: 12px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }

  .carousel-dot.active {
    width: 20px;
  }
}
