:root {
  --navy: #0b3e73;
  --blue: #0e63b5;
  --ink: #172233;
  --muted: #6a7480;
  --line: #dfe5eb;
  --soft: #f5f7fa;
  --green: #21b34b;
  --orange: #ff6a00;
  --white: #fff;
  --shadow: 0 8px 24px rgba(18, 40, 68, 0.08);
}
* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.main-navigation {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e7ebf0;
    border-bottom: 1px solid #e3e8ee;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    min-height: 58px;
    margin: 0 auto;
    padding: 0 32px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 58px;
    padding: 0 15px;
    border: 0;
    background: transparent;
    color: #172438;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.nav-link:hover,
.nav-item.active > .nav-link,
.has-dropdown.dropdown-open > .nav-link {
    color: #075cac;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 15px;
    bottom: -1px;
    left: 15px;
    height: 3px;
    background: #075cac;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-item.active > .nav-link::after,
.has-dropdown.dropdown-open > .nav-link::after {
    transform: scaleX(1);
}

.dropdown-toggle svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.has-dropdown.dropdown-open .dropdown-toggle svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: fixed;
    top: auto;
    left: 50%;
    width: min(1120px, calc(100vw - 48px));
    margin-top: 1px;
    background: #ffffff;
    border: 1px solid #dfe5ec;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 20px 55px rgba(10, 31, 55, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
    overflow: hidden;
    z-index: 1200;
}

.has-dropdown.dropdown-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 28px;
}

.dropdown-column {
    padding: 0 24px;
    border-right: 1px solid #e3e8ee;
}

.dropdown-column:first-child {
    padding-left: 0;
}

.dropdown-column:last-child {
    padding-right: 0;
    border-right: 0;
}

.dropdown-title {
    display: block;
    margin-bottom: 12px;
    color: #697688;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.dropdown-column > a {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 12px;
    margin: 0 -12px 4px;
    color: #172438;
    border-radius: 6px;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.dropdown-column > a:hover {
    color: #075cac;
    background: #f1f6fc;
}

.dropdown-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #cbd8e5;
    border-radius: 5px;
    background: #f7faff;
    color: #075cac;
    font-size: 18px;
    font-weight: 700;
}

.dropdown-column strong,
.dropdown-column small {
    display: block;
}

.dropdown-column strong {
    margin-bottom: 4px;
    color: inherit;
    font-size: 14px;
    line-height: 1.3;
}

.dropdown-column small {
    color: #6e7a89;
    font-size: 12px;
    line-height: 1.5;
}

.dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 18px 28px;
    background: #f4f7fa;
    border-top: 1px solid #e0e6ed;
}

.dropdown-footer strong,
.dropdown-footer span {
    display: block;
}

.dropdown-footer strong {
    margin-bottom: 3px;
    color: #172438;
    font-size: 14px;
}

.dropdown-footer > div > span {
    color: #6a7787;
    font-size: 12px;
}

.dropdown-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 165px;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 4px;
    background: #075cac;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.dropdown-button:hover {
    background: #064d91;
    transform: translateY(-1px);
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
.topbar {
  background: #083765;
  color: #fff;
  font-size: 13px;
}
.topbar .container {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.live-dot {
  width: 9px;
  height: 9px;
  background: #25c34e;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
}
.toplinks {
  display: flex;
  gap: 26px;
  opacity: 0.95;
}
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-main {
  height: 88px;
  display: grid;
  grid-template-columns: 280px 1fr 250px;
  gap: 28px;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -1px;
}
.brand b {
  color: #202733;
}
.brand em {
  font-style: normal;
  color: #1768a5;
}
.mark {
  width: 58px;
  height: 48px;
  position: relative;
  display: grid;
  place-items: center;
}
.mark:before {
  content: "M";
  font-weight: 1000;
  font-size: 42px;
  line-height: 1;
  color: #27303a;
  letter-spacing: -10px;
  transform: scaleX(1.15);
}
.mark:after {
  content: "";
  position: absolute;
  left: 7px;
  right: 5px;
  bottom: 4px;
  height: 3px;
  background: linear-gradient(90deg, #333 35%, var(--orange) 51%, #777 52%);
}
.search {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: #fff;
}
.search input {
  border: 0;
  outline: 0;
  flex: 1;
  font-size: 14px;
}
.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 26px;
}
.action {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.action .ico {
  font-size: 25px;
}
.nav {
  border-top: 1px solid #edf0f3;
}
.nav .container {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navlinks {
  display: flex;
  gap: 38px;
  height: 100%;
}
.navlinks a {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 3px solid transparent;
}
.navlinks a.active,
.navlinks a:hover {
  color: var(--blue);
  border-color: var(--blue);
}
.hamb {
  display: none;
  background: none;
  border: 0;
  font-size: 25px;
}
.btn {
  height: 46px;
  padding: 0 24px;
  border-radius: 4px;
  border: 1px solid var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue);
  color: white;
}
.btn-outline {
  background: white;
  color: var(--blue);
}
.hero {
  background:
    linear-gradient(90deg, #f5f7f9 0 44%, rgba(245, 247, 249, 0.2) 58%),
    url("https://images.unsplash.com/photo-1567789884554-0b844b597180?auto=format&fit=crop&w=1800&q=85")
      center/cover no-repeat;
}
.hero-inner {
  min-height: 365px;
  display: flex;
  align-items: center;
}
.hero-copy {
  width: 54%;
  padding: 36px 0;
}
.hero h1 {
  font-size: 50px;
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: -2px;
}
.hero h1 span {
  color: var(--blue);
}
.hero p {
  max-width: 560px;
  line-height: 1.7;
  color: #44505c;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin: 24px 0;
}
.microfacts {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: #4d5964;
}
.section {
  padding: 34px 0;
}
.section-title {
  font-size: 25px;
  margin: 0 0 18px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cat-card,
.product-card,
.mini-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(25, 45, 70, 0.03);
}
.cat-card img {
  height: 145px;
  width: 100%;
  object-fit: cover;
}
.cat-card .cap {
  padding: 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}
.how {
  background: #f4f6f8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature .icon {
  font-size: 32px;
  color: var(--blue);
}
.feature p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.product-card img {
  height: 145px;
  width: 100%;
  object-fit: cover;
}
.product-card .body {
  padding: 14px;
}
.product-card h3 {
  font-size: 15px;
  margin: 0 0 7px;
}
.small {
  font-size: 12px;
  color: var(--muted);
}
.stock {
  font-size: 12px;
  color: var(--green);
  margin: 8px 0;
}
.price {
  font-weight: 800;
  font-size: 18px;
}
.mcb {
  background: #f3f5f7;
  border-top: 1px solid var(--line);
}
.mcb-row {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 25px;
  align-items: center;
}
.mcb-logo {
  font-size: 36px;
  font-weight: 900;
  color: #1c4d80;
}
.footer {
  background: #202d3b;
  color: #fff;
  padding: 38px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 40px;
}
.footer h4 {
  font-size: 14px;
  margin: 0 0 15px;
}
.footer p,
.footer a {
  display: block;
  color: #d5dbe2;
  font-size: 13px;
  line-height: 1.8;
}
.footer-bottom {
  border-top: 1px solid #52606d;
  margin-top: 28px;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #d8dee4;
}
.trustbar {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.trustrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  font-size: 13px;
}
.breadcrumb {
  padding: 20px 0;
  font-size: 13px;
  color: #66717c;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
}
.pagehead h1 {
  font-size: 38px;
  margin: 0 0 8px;
}
.badges {
  display: flex;
  gap: 12px;
}
.badge {
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}
.info-banner {
  background: #edf4ff;
  border: 1px solid #d6e5fa;
  padding: 16px;
  border-radius: 4px;
  margin: 18px 0;
  display: flex;
  justify-content: space-between;
}
.catalog {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 28px;
}
.filters {
  border: 1px solid var(--line);
  padding: 18px;
  height: max-content;
}
.filter-section {
  border-bottom: 1px solid #dfe5ec;
}
.filter-section:first-child {
  border-top: 0;
}
.filter-section h4 {
  margin: 0 0 12px;
  font-size: 14px;
}
.filter-section label {
  display: block;
  font-size: 13px;
  margin: 9px 0;
  color: #56616c;
}
.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  margin-bottom: 16px;
}

.results-count {
  color: #26354a;
  font-size: 14px;
  font-weight: 500;
}

.results-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-switcher {
  display: flex;
  align-items: center;
  height: 42px;
  border: 1px solid #dce4ed;
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
}

.view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 40px;
  padding: 0;
  border: 0;
  border-right: 1px solid #e1e7ee;
  background: #ffffff;
  color: #6b7889;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.view-button:last-child {
  border-right: 0;
}

.view-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.view-button.active,
.view-button:hover {
  background: #f2f7fd;
  color: #075cac;
}

.sort-control {
  display: flex;
  align-items: center;
  height: 42px;
  border: 1px solid #dce4ed;
  border-radius: 4px;
  background: #ffffff;
}

.sort-label {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 15px;
  border-right: 1px solid #e1e7ee;
  color: #27364b;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.sort-select-wrap {
  position: relative;
  min-width: 160px;
  height: 100%;
}

.sort-select-wrap select {
  width: 100%;
  height: 100%;
  padding: 0 40px 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #27364b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
}

.sort-select-wrap svg {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #536174;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Existing grid view */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* List view */
.catalog-grid.list-view {
  grid-template-columns: 1fr;
}

.catalog-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 220px;
}

.catalog-grid.list-view .product-card > img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-bottom: 0;
  border-right: 1px solid #e2e7ed;
}

.catalog-grid.list-view .product-card .body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.catalog-grid.list-view .product-card .card-btn {
  width: 190px;
  margin-top: 14px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.catalog-grid .product-card img {
  height: 195px;
}
.product-card .card-btn {
  width: 100%;
  margin-top: 12px;
  height: 38px;
}
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}
.main-image {
  border: 1px solid var(--line);
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}
.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.thumbs img {
  height: 78px;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  padding: 3px;
}
.detail-info h1 {
  font-size: 34px;
  margin: 0 0 10px;
}
.sku {
  font-size: 13px;
  color: var(--muted);
}
.detail-price {
  font-size: 30px;
  font-weight: 800;
  margin: 18px 0;
}
.config {
  border: 1px solid var(--line);
  padding: 18px;
}
.formrow {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 15px;
  align-items: center;
  margin: 12px 0;
}
.formrow select,
.formrow input {
  height: 42px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: #fff;
}
.buyrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.tabs {
  display: flex;
  gap: 34px;
  border-bottom: 1px solid var(--line);
  margin-top: 28px;
}
.tabs button {
  border: 0;
  background: 0;
  padding: 14px 0;
  font-weight: 700;
  border-bottom: 3px solid transparent;
}
.tabs button.active {
  color: var(--blue);
  border-color: var(--blue);
}
.tabcontent {
  padding: 20px 0;
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 0.7fr;
  gap: 22px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table td {
  border: 1px solid var(--line);
  padding: 9px;
  font-size: 13px;
}
.extra-title {
  margin-top: 28px;
  margin-bottom: 14px;
  text-align: left;
  font-size: 18px;
}

.extras {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.extra {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-height: 112px;
  padding: 16px 14px;
  border: 1px solid #dfe5ec;
  border-radius: 4px;
  background: #ffffff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.extra:hover {
  border-color: #a9c7e7;
  box-shadow: 0 6px 18px rgba(16, 44, 74, 0.08);
  transform: translateY(-2px);
}

.extra-icon {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 42px;
  color: #14223a;
}

.extra-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.extra-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.extra-content b {
  margin-bottom: 4px;
  color: #15243a;
  font-size: 13px;
  line-height: 1.3;
}

.extra-content > span {
  min-height: 31px;
  color: #778395;
  font-size: 10px;
  line-height: 1.45;
}

.extra-configure {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #075cac;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.2s ease;
}

.extra-configure:hover {
  color: #063f78;
  text-decoration: underline;
}

.upload-extra .extra-configure {
  color: #075cac;
}
.mobile-only {
  display: none;
}

.filters {
  border: 1px solid #dfe5ec;
  background: #ffffff;
  padding: 0 18px 18px;
}

.filters-heading {
  padding: 18px 0 14px;
  border-bottom: 1px solid #dfe5ec;
  color: #14223a;
  font-size: 16px;
  font-weight: 800;
}

.filter-section {
  border-bottom: 1px solid #dfe5ec;
}

.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #14223a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.filter-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.filter-options {
  max-height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease,
    opacity 0.2s ease,
    visibility 0.2s ease;
}


.filter-section.open .filter-options {
  max-height: 300px;
  padding: 0 0 16px;
  opacity: 1;
  visibility: visible;
}

.filter-section.open .filter-arrow {
  transform: rotate(180deg);
}

.filter-options {
  padding: 0;
}

.filter-section.open .filter-options {
  padding-bottom: 16px;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: #506078;
  font-size: 14px;
  cursor: pointer;
}

.filter-options label:last-child {
  margin-bottom: 0;
}

.filter-options input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #075cac;
  cursor: pointer;
}

.filter-results-btn {
  width: 100%;
  margin-top: 18px;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  margin-bottom: 16px;
}

.results-count {
  color: #26354a;
  font-size: 14px;
  font-weight: 500;
}

.results-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-switcher {
  display: flex;
  align-items: center;
  height: 42px;
  border: 1px solid #dce4ed;
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
}

.view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 40px;
  padding: 0;
  border: 0;
  border-right: 1px solid #e1e7ee;
  background: #ffffff;
  color: #6b7889;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.view-button:last-child {
  border-right: 0;
}

.view-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.view-button.active,
.view-button:hover {
  background: #f2f7fd;
  color: #075cac;
}

.sort-control {
  display: flex;
  align-items: center;
  height: 42px;
  border: 1px solid #dce4ed;
  border-radius: 4px;
  background: #ffffff;
}

.sort-label {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 15px;
  border-right: 1px solid #e1e7ee;
  color: #27364b;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.sort-select-wrap {
  position: relative;
  min-width: 160px;
  height: 100%;
}

.sort-select-wrap select {
  width: 100%;
  height: 100%;
  padding: 0 40px 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #27364b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
}

.sort-select-wrap svg {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #536174;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Existing grid view */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* List view */
.catalog-grid.list-view {
  grid-template-columns: 1fr;
}

.catalog-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 220px;
}

.catalog-grid.list-view .product-card > img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-bottom: 0;
  border-right: 1px solid #e2e7ed;
}

.catalog-grid.list-view .product-card .body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.catalog-grid.list-view .product-card .card-btn {
  width: 190px;
  margin-top: 14px;
}

.mcb-stock-card {
  margin-top: 16px;
  border: 1px solid #dce4ec;
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
}

.mcb-stock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 11px 15px;
  border-bottom: 1px solid #e2e7ed;
}

.mcb-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mcb-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 5px;
  background: linear-gradient(145deg, #075cac, #093965);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  transform: rotate(45deg);
}

.mcb-logo-mark::first-letter {
  transform: rotate(-45deg);
}

.mcb-brand > div:last-child {
  display: flex;
  flex-direction: column;
}

.mcb-brand strong {
  color: #18263a;
  font-size: 21px;
  line-height: 1;
}

.mcb-brand span {
  margin-top: 3px;
  color: #27364a;
  font-size: 12px;
  font-weight: 700;
}

.mcb-live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #1a9d46;
  font-size: 12px;
  font-weight: 700;
}

.mcb-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18ad4b;
  box-shadow: 0 0 0 3px rgba(24, 173, 75, 0.11);
}

.mcb-stock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 14px;
}

.mcb-stock-item {
  min-width: 0;
  padding: 13px 12px;
  border-right: 1px solid #e3e8ee;
}

.mcb-stock-item:first-child {
  padding-left: 0;
}

.mcb-stock-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.mcb-stock-item > span {
  display: block;
  margin-bottom: 5px;
  color: #7a8695;
  font-size: 10px;
  font-weight: 600;
}

.mcb-stock-item strong {
  display: block;
  color: #233247;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.mcb-stock-item .mcb-green {
  color: #16a34a;
}

.certificate-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.certificate-value strong {
  min-width: 0;
}

.certificate-button {
  display: inline-flex;
  flex: 0 0 25px;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid #d5dee8;
  border-radius: 3px;
  background: #ffffff;
  color: #526176;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.certificate-button:hover {
  border-color: #075cac;
  background: #f1f6fc;
  color: #075cac;
}

.certificate-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mcb-stock-note {
  padding: 9px 14px;
  border-top: 1px solid #e4e9ef;
  color: #687587;
  font-size: 10px;
}

.related-products-section {
  margin-top: 30px;
}

.related-title {
  margin-bottom: 14px;
  text-align: left;
  font-size: 18px;
}

.related-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-viewport {
 flex: 1;
  min-width: 0;
  overflow: hidden;
}

.related-track {
  display: flex;
  gap: 14px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.related-card {
  flex: 0 0 calc((100% - 56px) / 5);
  min-width: 0;
}

.related-card > img {
  width: 100%;
  height: 125px;
  object-fit: cover;
}

.related-card .body {
  position: relative;
  min-height: 132px;
  padding: 12px 44px 12px 12px;
}

.related-card h3 {
  margin: 0 0 7px;
  color: #172438;
  font-size: 12px;
  line-height: 1.4;
}

.related-card .stock {
  margin-bottom: 7px;
  color: #16a34a;
  font-size: 10px;
}

.related-card .price {
  color: #172438;
  font-size: 15px;
  font-weight: 800;
}

.related-card .price .small {
  color: #64748b;
  font-size: 9px;
  font-weight: 500;
}

.related-cart-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border: 1px solid #075cac;
  border-radius: 3px;
  background: #ffffff;
  color: #075cac;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.related-cart-button:hover {
  background: #075cac;
  color: #ffffff;
}

.related-cart-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.related-arrow {
  position: relative;
  z-index: 10;
  flex: 0 0 38px;
  cursor: pointer;
}

.related-arrow:hover {
  border-color: #075cac;
  background: #f3f8fd;
  color: #075cac;
}

.related-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.related-arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1100px) {
   .related-card {
    flex-basis: calc((100% - 42px) / 4);
  }
}

@media (max-width: 850px) {
  .related-card {
    flex-basis: calc((100% - 28px) / 3);
  }
}

@media (max-width: 620px) {
  .related-card {
    flex-basis: calc((100% - 14px) / 2);
  }

  .related-arrow {
    flex-basis: 34px;
    width: 34px;
  }
}

@media (max-width: 700px) {
  .mcb-stock-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .mcb-stock-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mcb-stock-item:nth-child(2) {
    border-right: 0;
  }

  .mcb-stock-item:nth-child(-n + 2) {
    border-bottom: 1px solid #e3e8ee;
  }
}

@media (max-width: 1050px) {
  .extras {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
      .results-head {
    align-items: flex-start;
  }

  .results-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  .catalog-grid.list-view .product-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .header-main {
    grid-template-columns: 1fr auto;
    height: 74px;
  }
  .search,
  .header-actions,
  .toplinks {
    display: none;
  }
  .hamb {
    display: block;
  }
  .nav .container {
    height: auto;
  }
  .navlinks {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .navlinks.open {
    display: flex;
  }
  .navlinks a {
    padding: 14px 0;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-row,
  .mcb-row,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-copy {
    width: 100%;
  }
  .hero {
    background:
      linear-gradient(rgba(245, 247, 249, 0.88), rgba(245, 247, 249, 0.88)),
      url("https://images.unsplash.com/photo-1567789884554-0b844b597180?auto=format&fit=crop&w=1200&q=80")
        center/cover;
  }
  .hero h1 {
    font-size: 40px;
  }
  .catalog,
  .detail {
    grid-template-columns: 1fr;
  }
  .filters {
    display: none;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .extras {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters {
    width: 100%;
  }


}

@media (min-width: 993px) {
    .has-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
        pointer-events: auto;
    }

    .has-dropdown:hover .dropdown-toggle svg {
        transform: rotate(180deg);
    }
}

@media (max-width: 992px) {
    .main-navigation {
        display: none;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        border-top: 1px solid #e4e9ef;
    }

    .main-navigation.mobile-open {
        display: block;
    }

    .nav-menu {
        display: block;
        min-height: auto;
        padding: 12px 20px 24px;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #edf0f4;
    }

    .nav-link {
        justify-content: space-between;
        width: 100%;
        min-height: 52px;
        padding: 0;
        text-align: left;
    }

    .nav-link::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        max-height: 0;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .has-dropdown.dropdown-open .dropdown-menu {
        max-height: 1600px;
        transform: none;
    }

    .dropdown-grid,
    .metal-grid {
        grid-template-columns: 1fr;
        padding: 8px 0 14px 14px;
    }

    .dropdown-column,
    .dropdown-column:first-child,
    .dropdown-column:last-child {
        padding: 12px 0;
        border-right: 0;
        border-bottom: 1px solid #e6ebf0;
    }

    .dropdown-column:last-child {
        border-bottom: 0;
    }

    .dropdown-column > a {
        margin-right: 0;
    }

    .dropdown-footer {
        display: block;
        padding: 18px 14px;
    }

    .dropdown-button {
        width: 100%;
        margin-top: 14px;
    }
}

@media (max-width: 1100px) {
    .nav-menu {
        padding: 0 18px;
    }

    .nav-link {
        padding: 0 9px;
        font-size: 13px;
    }

    .nav-link::after {
        right: 9px;
        left: 9px;
    }

    .dropdown-grid {
        padding: 22px;
    }

    .dropdown-column {
        padding: 0 14px;
    }
}

@media (max-width: 700px) {
  .extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }
  .brand {
    font-size: 20px;
  }
  .mark {
    width: 44px;
  }
  .topbar .container {
    justify-content: center;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-actions,
  .microfacts,
  .badges {
    flex-direction: column;
  }
  .steps,
  .feature-row,
  .products-grid,
  .category-grid,
  .catalog-grid,
  .footer-grid,
  .mcb-row,
  .buyrow,
  .extras {
    grid-template-columns: 1fr;
  }
  .pagehead {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }
  .main-image {
    height: 300px;
  }
  .footer-bottom,
  .trustrow {
    flex-direction: column;
    align-items: flex-start;
  }
  .category-grid .cat-card img {
    height: 180px;
  }


}

@media (max-width: 650px) {
  .results-head {
    display: block;
  }
  .related-card {
    flex-basis: calc((100% - 14px) / 2);
  }

  .results-count {
    display: block;
    margin-bottom: 12px;
  }

  .results-controls {
    justify-content: space-between;
  }

  .sort-control {
    flex: 1;
  }

  .sort-select-wrap {
    flex: 1;
    min-width: 120px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid.list-view .product-card {
    display: block;
  }

  .catalog-grid.list-view .product-card > img {
    height: 210px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #e2e7ed;
  }

  .catalog-grid.list-view .product-card .card-btn {
    width: 100%;
  }
}

@media (max-width: 450px) {
      .related-card {
    flex-basis: 100%;
  }
  .mcb-stock-grid {
    grid-template-columns: 1fr;
  }

  .mcb-stock-item,
  .mcb-stock-item:first-child,
  .mcb-stock-item:last-child {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid #e3e8ee;
  }

  .mcb-stock-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 460px) {
  .extras {
    grid-template-columns: 1fr;
  }

  .extra {
    min-height: auto;
  }
}

@media (max-width: 420px) {
  .related-card {
    flex-basis: 100%;
  }
}

/* =========================================================
   PRODUCT DETAIL PAGE — RESPONSIVE FIX
   Add at the END of style.css
========================================================= */

@media (max-width: 992px) {
  /* Product top section */
  .detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .detail > div,
  .detail-info {
    min-width: 0;
  }

  .main-image {
    height: auto;
    min-height: 420px;
  }

  .detail-info h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  /* Specification content */
  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }

  .spec-grid .mini-card {
    grid-column: 1 / -1;
  }

  /* Extra operations */
  .extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Feature row below slider */
  .related-products-section + .section .feature-row,
  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  /* Breadcrumb */
  .breadcrumb {
    padding: 14px 0;
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  /* Product image */
  .main-image {
    min-height: 0;
    height: 360px;
  }

  .main-image img {
    object-fit: cover;
  }

  .thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .thumbs img {
    height: 68px;
    padding: 2px;
    cursor: pointer;
  }

  /* Product heading and pricing */
  .detail-info h1 {
    font-size: 26px;
    overflow-wrap: anywhere;
  }

  .sku {
    line-height: 1.7;
  }

  .sku .stock {
    display: block;
    margin-top: 5px;
  }

  .detail-price {
    margin: 14px 0 5px;
    font-size: 27px;
  }

  /* Product configuration */
  .config {
    padding: 15px;
  }

  .formrow {
    grid-template-columns: 1fr;
    gap: 7px;
    margin: 14px 0;
  }

  .formrow select,
  .formrow input {
    width: 100%;
    min-width: 0;
    height: 44px;
  }

  .buyrow {
    grid-template-columns: 1fr;
  }

  .buyrow .btn {
    width: 100%;
  }

  /* MCB stock card */
  .mcb-stock-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

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

  .mcb-stock-item {
    padding: 13px 10px;
  }

  .mcb-stock-item:nth-child(2) {
    border-right: 0;
  }

  .mcb-stock-item:nth-child(-n + 2) {
    border-bottom: 1px solid #e3e8ee;
  }

  /* Tabs */
  .tabs {
    gap: 0;
    margin-top: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs button {
    flex: 0 0 auto;
    padding: 13px 14px;
    white-space: nowrap;
    font-size: 12px;
  }

  /* Specifications */
  .tabcontent {
    padding: 17px 0;
  }

  .spec-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .spec-grid .mini-card {
    grid-column: auto;
  }

  .spec-table {
    display: block;
    overflow-x: auto;
  }

  .spec-table td {
    min-width: 130px;
  }

  /* Extra operations */
  .extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .extra {
    min-width: 0;
    min-height: 120px;
    padding: 14px 11px;
  }

  .extra-icon {
    flex-basis: 32px;
    width: 32px;
  }

  .extra-icon svg {
    width: 29px;
    height: 29px;
  }

  .extra-content > span {
    min-height: auto;
  }

  /* Related products slider */
  .related-products-section {
    min-width: 0;
    margin-top: 26px;
  }

  .related-slider {
    gap: 7px;
    min-width: 0;
  }

  .related-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .related-track {
    display: flex;
    gap: 12px;
  }

  .related-card {
    flex: 0 0 calc((100% - 12px) / 2);
    min-width: 0;
  }

  .related-card > img {
    height: 135px;
  }

  .related-card .body {
    min-height: 138px;
    padding: 12px 40px 12px 11px;
  }

  .related-arrow {
    flex: 0 0 34px;
    width: 34px;
    height: 54px;
  }

  /* Benefits */
  .related-products-section + .section {
    padding-top: 24px;
  }

  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .trustrow {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  /* Product image */
  .main-image {
    height: 290px;
  }

  .thumbs {
    gap: 6px;
  }

  .thumbs img {
    height: 56px;
  }

  .detail-info h1 {
    font-size: 23px;
  }

  .detail-price {
    font-size: 25px;
  }

  /* MCB */
  .mcb-stock-grid {
    grid-template-columns: 1fr;
    padding: 0 13px;
  }

  .mcb-stock-item,
  .mcb-stock-item:first-child,
  .mcb-stock-item:last-child {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid #e3e8ee;
  }

  .mcb-stock-item:last-child {
    border-bottom: 0;
  }

  .mcb-stock-item:nth-child(-n + 2) {
    border-bottom: 1px solid #e3e8ee;
  }

  .mcb-live-status {
    font-size: 11px;
  }

  /* Extra operations */
  .extras {
    grid-template-columns: 1fr;
  }

  .extra {
    min-height: auto;
  }

  /* Related slider */
  .related-slider {
    position: relative;
    display: block;
    padding: 0 42px;
  }

  .related-card {
    flex-basis: 100%;
  }

  .related-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
  }

  .related-prev {
    left: 0;
  }

  .related-next {
    right: 0;
  }

  .related-card > img {
    height: 180px;
  }

  /* Benefits */
  .feature-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trustrow {
    flex-direction: column;
    gap: 12px;
  }
}




/* SVG icon integration */
.ui-icon,
.dropdown-icon img,
.feature .icon img,
.step-visual img,
.microfacts img,
.mcb-benefit img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mcb-intro {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.mcb-logo {
    flex-shrink: 0;
}

.mcb-logo img {
    width: 56px;
    height: auto;
    display: block;
}

.mcb-content h3 {
    margin: 0 0 8px;
}

.mcb-content .small {
    margin: 0;
    line-height: 1.6;
}

.dropdown-icon {
  padding: 7px;
}

.microfacts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.microfacts img {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 15px;
}

.step-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.feature .icon {
  display: inline-flex;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.feature .icon img {
  width: 42px;
  height: 42px;
}

.mcb-logo {
  width: 92px;
  margin-bottom: 8px;
}

.mcb-logo img {
  width: 100%;
  height: auto;
}

.mcb-benefit {
  display: grid;
  justify-items: center;
  text-align: center;
}

.mcb-benefit img {
  width: 38px;
  height: 38px;
  margin-bottom: 9px;
}

@media (max-width: 900px) {
  .step {
    grid-template-columns: 38px minmax(0, 1fr) 48px;
  }
  .step-visual {
    width: 48px;
    height: 48px;
  }
  .microfacts span {
    white-space: normal;
  }
}

/* Product listing icon refinements */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.stock-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--green);
}
.badge-stock,
.stock {
  display: flex;
  align-items: center;
  gap: 7px;
}
.info-banner > span:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.info-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-style: normal;
}
.mcb-stock {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 7px 0 9px;
  color: #425268;
  font-size: 12px;
  font-weight: 600;
}
.mcb-stock img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}
.card-btn img {
  width: 18px;
  height: 18px;
  margin-left: auto;
  object-fit: contain;
}
.dropdown-icon .ui-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Product detail SVG icon integration */
.dropdown-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.mcb-logo-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-text img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.button-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.cart-line-icon {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 16px;
  border: 1.8px solid currentColor;
  border-top: 0;
  transform: skew(-8deg);
}

.cart-line-icon::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 1.8px;
  left: -5px;
  top: -4px;
  background: currentColor;
  transform: skew(8deg) rotate(10deg);
}

.cart-line-icon::after {
  content: "••";
  position: absolute;
  left: 1px;
  bottom: -10px;
  font-size: 14px;
  letter-spacing: 5px;
  transform: skew(8deg);
}

.extra-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.feature .icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.detail-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.detail-benefits span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.detail-benefits img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

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

/* =========================================================
   ALL PRODUCTS PAGE — PRODUCT CARD HEIGHT FIX
   Scoped only to .catalog-grid grid view.
   The index page uses .products-grid, so it is not affected.
========================================================= */

.catalog-grid:not(.list-view) {
  align-items: start;
  grid-auto-rows: max-content;
}

.catalog-grid:not(.list-view) .product-card {
  display: block;
  align-self: start;
  height: auto;
  min-height: 0;
}

.catalog-grid:not(.list-view) .product-card > img {
  display: block;
  width: 100%;
  height: 195px;
  object-fit: cover;
}

.catalog-grid:not(.list-view) .product-card .body {
  display: block;
  height: auto;
  min-height: 0;
  padding: 14px;
}

.catalog-grid:not(.list-view) .product-card .mcb-stock {
  margin: 10px 0 12px;
}

.catalog-grid:not(.list-view) .product-card .price {
  margin: 12px 0 0;
}

.catalog-grid:not(.list-view) .product-card .card-btn {
  width: 100%;
  margin-top: 12px;
}

/* Preserve the intended list-view layout. */
.catalog-grid.list-view .product-card {
  display: grid;
}

.catalog-grid.list-view .product-card .body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Added: the original dropdown-grid was hardcoded to exactly 3 columns
   (repeat(3, 1fr)), which would wrap unevenly with 7 real main categories
   and break the first-child/last-child border rules on wrapped rows. This
   only adjusts that existing property's value, not adding any new class. */
.dropdown-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

/* Added: Laravel's Bootstrap-5 pagination markup had zero matching CSS in
   this file, since the original static mockup never included real
   pagination (just placeholder "1.286 resultaten" text). Styled to match
   the site's own button/border conventions (--blue variable, 4px radius). */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}

.page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e3e8ee;
  border-radius: 4px;
  color: #172438;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-item .page-link:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: #f1f6fc;
}

.page-item.active .page-link {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.page-item.disabled .page-link {
  color: #a7b0bc;
  border-color: #eef2f6;
  background: #fafbfc;
  cursor: default;
}

/* Added: account dropdown for logged-in users (admin panel link, profile,
   logout) - matches the existing login-popover/nav-dropdown visual
   language (border/shadow/radius/blue accent) rather than inventing a new
   style. */
.account-menu {
  position: relative;
}

.account-trigger {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1100;
  min-width: 210px;
  padding: 8px;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(10, 31, 55, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.account-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.account-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #172438;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.account-dropdown-item:hover {
  color: #075cac;
  background: #f1f6fc;
}

.account-dropdown-admin {
  color: #075cac;
}

.account-dropdown-divider {
  height: 1px;
  margin: 6px 4px;
  background: #e3e8ee;
}

.account-dropdown form {
  margin: 0;
}

.account-dropdown-logout:hover {
  color: #c0392b;
  background: #fdf1f0;
}
