:root {
  --brand: #0070f3;
  --brand-dark: #0058c4;
  --brand-soft: #eef6ff;
  --ink: #0b1120;
  --muted: #4b5563;
  --border: #e5e7eb;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --radius: 8px;
  --shadow: 0 1px 4px rgba(11, 17, 32, 0.06);
  --shadow-lg: 0 10px 28px rgba(11, 17, 32, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: #d1d5db;
}

.btn-secondary:hover {
  background: #f3f4f6;
}

.btn-lg {
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  font-size: 0.96rem;
}

.btn-sm {
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  font-size: 0.84rem;
}

.btn-block {
  width: 100%;
}

.link-btn {
  background: none;
  border: 0;
  color: var(--brand-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Header & Search */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand-logo img {
  height: 40px;
  width: auto;
}

.header-search {
  position: relative;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.search-form {
  display: flex;
  position: relative;
}

.search-form input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 3rem 0.5rem 0.9rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-size: max(1rem, 1em);
  background: #f9fafb;
  color: var(--ink);
}

.search-form input[type="search"]:focus {
  border-color: var(--brand);
  background: var(--surface);
  outline: none;
}

.search-form button {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 5px;
  background: var(--brand);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.search-form button img {
  filter: brightness(0) invert(1);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 60;
}

.search-drop-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.search-drop-item:hover {
  background: var(--bg);
  text-decoration: none;
}

.search-drop-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.search-drop-info {
  flex: 1;
  min-width: 0;
}

.search-drop-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-drop-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.search-drop-all {
  display: block;
  text-align: center;
  padding: 0.7rem;
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
}

.header-action-link:hover {
  background: var(--bg);
  text-decoration: none;
}

.action-icon-wrap {
  position: relative;
  display: inline-flex;
}

.action-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 9px;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
}

/* Navigation & Mega Menu */
.main-nav {
  background: var(--ink);
  color: #fff;
}

.nav-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.catalog-menu-wrap {
  position: relative;
}

.catalog-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1rem;
  background: var(--brand);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 760px;
  max-width: 95vw;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 55;
}

.mega-parents {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  width: 250px;
  border-right: 1px solid var(--border);
  min-height: 340px;
  position: relative;
}

.mega-parent-item>a {
  display: block;
  padding: 0.52rem 0.9rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
}

.mega-parent-item.active>a,
.mega-parent-item>a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
  text-decoration: none;
}

.mega-subs {
  display: none;
  position: absolute;
  top: 0;
  left: 250px;
  width: 508px;
  min-height: 100%;
  padding: 1rem 1.25rem;
  background: var(--surface);
}

.mega-parent-item.active .mega-subs {
  display: block;
}

.mega-subs-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

.mega-subs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.mega-sub-link {
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.mega-sub-link:hover {
  background: var(--bg);
  color: var(--brand-dark);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
}

.nav-links>li {
  position: relative;
}

.nav-links>li>a {
  display: block;
  padding: 0.7rem 0.8rem;
  color: #d1d5db;
  font-weight: 600;
  font-size: 0.88rem;
}

.nav-links>li>a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 0.35rem;
  z-index: 50;
}

.nav-has-sub:hover .nav-dropdown,
.nav-has-sub:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--ink);
  border-radius: 4px;
  font-size: 0.86rem;
}

.nav-dropdown a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
  text-decoration: none;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-phone img {
  filter: brightness(0) invert(1);
}

/* Main */
.site-main {
  max-width: 1340px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  min-height: 60vh;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--muted);
}

/* Hero Asymmetric Store Layout */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: stretch;
}

.hero-section {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--border);
}

.hero-slides {
  position: relative;
  height: 100%;
  min-height: 320px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 2.5rem;
  max-width: 560px;
  color: #fff;
}

.hero-tag {
  background: var(--brand);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.hero-overlay h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  line-height: 1.15;
}

.hero-overlay p {
  margin: 0 0 1.1rem;
  color: #e5e7eb;
  font-size: 0.96rem;
}

.hero-controls {
  position: absolute;
  bottom: 0.8rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  z-index: 5;
}

.hero-arrow {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 0;
  background: rgba(11, 17, 32, 0.7);
  color: #fff;
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 0.4rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.hero-dot.active {
  background: #fff;
}

.hero-side-panel {
  display: grid;
  gap: 1rem;
}

.side-panel-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
}

.side-panel-muted {
  background: #f8fafc;
}

.side-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-dark);
  letter-spacing: 0.04em;
}

.side-panel-box h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.side-panel-box p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.side-panel-box strong {
  font-size: 1.15rem;
  color: var(--ink);
}

/* Quick Categories */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.section-link {
  font-size: 0.88rem;
  font-weight: 600;
}

.quick-cats-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.quick-cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.84rem;
  transition: border-color 0.15s;
}

.quick-cat-card:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}

.quick-cat-svg {
  color: var(--brand-dark);
}

.featured-section {
  margin-bottom: 2rem;
}

/* Trust Bar & SEO */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.trust-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
}

.trust-item span {
  font-size: 0.84rem;
  color: var(--muted);
}

.seo-card-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin: 1.5rem 0 2rem;
}

.seo-card-wrap h1,
.seo-card-wrap h2 {
  margin: 0 0 0.85rem;
  font-size: 1.3rem;
}

.lead-text {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 82ch;
  margin: 0;
}

.clients-section {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}

.clients-section h3 {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-weight: 600;
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 2.75rem;
}

.clients-logos img {
  height: 44px;
  width: auto;
  opacity: 0.78;
  filter: grayscale(30%);
}

/* Catalog Layout & Compact Scrollable Filters */
.catalog-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.catalog-header h1 {
  margin: 0;
  font-size: 1.55rem;
}

.catalog-count {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.subcats-hub-section {
  margin-top: 1.5rem;
}

.subcats-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2.25rem;
}

.subcat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.subcat-tile.has-img {
  position: relative;
  display: block;
  padding: 0;
  height: 235px;
  overflow: hidden;
  background: #0b1120;
}

.subcat-tile:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
}

.subcat-img-box {
  position: absolute;
  inset: 0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subcat-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.subcat-tile.has-img:hover .subcat-img-box img {
  transform: scale(1.04);
}

.subcat-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.subcat-tile-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1;
}

.subcat-tile.has-img .subcat-tile-body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 2.75rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(11, 17, 32, 0.9) 0%, rgba(11, 17, 32, 0.52) 58%, transparent 100%);
  color: #fff;
}

.subcat-tile-text {
  flex: 1;
  min-width: 0;
}

.subcat-tile-text strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
}

.subcat-tile-text span {
  font-size: 0.84rem;
  color: var(--muted);
}

.subcat-tile.has-img .subcat-tile-text span {
  color: rgba(255, 255, 255, 0.82);
}

.subcat-arrow {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
}

.subcat-tile.has-img .subcat-arrow {
  color: #fff;
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.sort-form select {
  min-height: 38px;
  padding: 0.3rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: var(--surface);
  font: inherit;
  font-size: 0.88rem;
}

.mobile-filter-btn {
  display: none;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
}

.filter-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.filter-sidebar-head h2 {
  margin: 0;
  font-size: 0.98rem;
}

.filter-reset-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--danger);
}

.filter-close-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
}

.filter-group {
  border: 0;
  padding: 0.45rem 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.filter-group legend {
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.filter-options-scroll {
  max-height: 145px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-right: 2px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  cursor: pointer;
  min-height: 24px;
  line-height: 1.25;
}

.filter-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
  flex-shrink: 0;
}

.facet-cnt {
  color: var(--muted);
  margin-left: auto;
  font-size: 0.76rem;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.price-inputs input {
  width: 100%;
  min-height: 34px;
  padding: 0.25rem 0.45rem;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font: inherit;
  font-size: 0.82rem;
}

/* Product Grid & Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 0.85rem;
}

.prod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.prod-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.prod-badge-discount {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--danger);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  z-index: 2;
}

.prod-card-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 165px;
  margin-bottom: 0.65rem;
}

.prod-card-img-wrap img {
  max-height: 155px;
  width: auto;
  object-fit: contain;
}

.prod-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}

.prod-card-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-card-title a {
  color: var(--ink);
}

.prod-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.prod-card .card-cta {
  position: relative;
  z-index: 2;
}

.prod-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.spec-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.prod-card-stock {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.79rem;
  font-weight: 600;
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.prod-card-stock.inStoc {
  color: var(--success);
}

.prod-card-stock.limitedStock {
  color: var(--warning);
}

.prod-card-stock.outOfStock {
  color: var(--danger);
}

.stock-delivery {
  color: var(--muted);
  font-weight: 400;
}

.prod-card-footer {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price-old {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: line-through;
}

.price-current {
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1;
}

.price-current sup {
  font-size: 0.72rem;
}

.price-currency {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.75rem;
}

.page-btn {
  min-width: 38px;
  min-height: 38px;
  padding: 0 0.7rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.88rem;
}

.page-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.product-main-img {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  place-items: center;
  min-height: 340px;
  background: #fff;
}

.product-main-img img {
  max-height: 340px;
  object-fit: contain;
}

.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.thumb-btn {
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  padding: 3px;
  cursor: pointer;
}

.thumb-btn.active {
  border-color: var(--brand);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-title {
  margin: 0 0 0.45rem;
  font-size: 1.5rem;
  line-height: 1.25;
}

.product-meta-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.product-buy-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-lg {
  font-size: 1.85rem;
}

.vat-note {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
}

.product-perks {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
  display: grid;
  gap: 0.2rem;
}

.product-b2b-boxes {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.45rem;
}

.info-accordion {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  background: var(--surface);
  font-size: 0.88rem;
}

.info-accordion summary {
  font-weight: 600;
  cursor: pointer;
}

.info-accordion p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.product-tabs-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.tab-btn {
  min-height: 42px;
  padding: 0.45rem 1rem;
  border: 0;
  border-bottom: 2.5px solid transparent;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.tab-btn.active {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
}

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

.specs-table th,
.specs-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.88rem;
}

.specs-table th {
  width: 35%;
  color: var(--muted);
  font-weight: 600;
}

/* Services, Gallery, Contact */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.service-card-body h2 {
  margin: 0;
  font-size: 1.05rem;
}

.service-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  flex: 1;
}

.service-detail-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.service-features-list {
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.service-cta-box {
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.service-cta-box h3,
.service-cta-box p {
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.gallery-thumb {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.map-wrap iframe {
  width: 100%;
  border-radius: 6px;
}

/* Cart, Account & Forms */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.cart-items-col {
  display: grid;
  gap: 0.75rem;
}

.cart-item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 0.9rem;
  align-items: center;
}

.cart-item-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.cart-item-info h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.cart-ext-pill {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.2rem;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
}

.qty-control button {
  width: 32px;
  height: 34px;
  border: 0;
  background: var(--bg);
  font-weight: 700;
  cursor: pointer;
}

.qty-control input {
  width: 42px;
  height: 34px;
  border: 0;
  text-align: center;
  font: inherit;
}

.cart-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  position: sticky;
  top: 76px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  font-size: 0.94rem;
}

.summary-total {
  border-top: 1px solid var(--border);
  margin-top: 0.4rem;
  padding-top: 0.8rem;
  font-size: 1.15rem;
}

.cart-ext-notice {
  background: #fef3c7;
  color: #92400e;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.84rem;
  margin: 0.65rem 0;
}

.summary-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.cart-summary-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.auth-card {
  max-width: 460px;
  margin: 1rem auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
  background: var(--bg);
  padding: 0.25rem;
  border-radius: 6px;
}

.auth-tab {
  min-height: 40px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.auth-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.auth-title {
  margin: 0 0 0.85rem;
  font-size: 1.3rem;
}

.auth-switch {
  text-align: center;
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.modern-form {
  display: grid;
  gap: 0.85rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.88rem;
}

.form-field input,
.form-field textarea {
  font: inherit;
  font-size: max(1rem, 1em);
  padding: 0.65rem 0.8rem;
  min-height: 48px;
  border: 1px solid #9ca3af;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.form-field input:user-invalid,
.form-field textarea:user-invalid {
  border-color: var(--danger);
}

.pw-wrap {
  position: relative;
  display: flex;
}

.pw-wrap input {
  width: 100%;
  padding-right: 4.5rem;
}

.pw-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: var(--bg);
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.pw-rules {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.pw-rules li.valid {
  color: var(--success);
  font-weight: 600;
}

.form-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.86rem;
}

.form-check-row input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.form-alert {
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
}

.form-alert.success {
  background: #dcfce7;
  color: #166534;
}

.form-alert.error {
  background: #fee2e2;
  color: #991b1b;
}

.account-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.account-header-actions {
  display: flex;
  gap: 0.5rem;
}

.account-orders-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.order-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.9rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.order-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* Native Dialogs */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(11, 17, 32, 0.55);
}

.modern-dialog {
  border: 0;
  border-radius: var(--radius);
  padding: 1.35rem;
  max-width: 460px;
  width: 92vw;
  box-shadow: var(--shadow-lg);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.dialog-header h1 {
  margin: 0;
  font-size: 1.25rem;
}

.dialog-close {
  width: 38px;
  height: 38px;
  border: 0;
  background: var(--bg);
  border-radius: 6px;
  font-size: 1.35rem;
  cursor: pointer;
}

.lightbox-dialog {
  border: 0;
  background: transparent;
  padding: 0;
  max-width: 92vw;
  max-height: 90vh;
}

.lightbox-dialog img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Empty State, Footer, Floating, Toast */
.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  margin-top: 2.5rem;
}

.footer-grid {
  max-width: 1340px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.footer-col h3 {
  color: #fff;
  margin: 0 0 0.65rem;
  font-size: 0.96rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 0.85rem;
  font-size: 0.82rem;
}

.floating-social {
  position: fixed;
  right: 0.9rem;
  bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 35;
}

.cookie-banner {
  position: fixed;
  bottom: 0.9rem;
  left: 0.9rem;
  right: 4.5rem;
  max-width: 520px;
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  z-index: 50;
  box-shadow: var(--shadow-lg);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.84rem;
}

.cookie-banner a {
  color: #7dd3fc;
}

.toast-notice {
  position: fixed;
  bottom: 1.15rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1.15rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 70;
  box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-side-panel {
    grid-template-columns: 1fr 1fr;
  }

  .quick-cats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

  .mobile-filter-btn {
    display: inline-flex;
  }

  .filter-sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 65;
    border-radius: 0;
    max-height: 100vh;
    overflow-y: auto;
    max-width: 340px;
    width: 88vw;
    top: 0;
  }

  .filter-sidebar.open {
    display: block;
  }

  .filter-close-btn {
    display: block;
  }

  .product-detail,
  .service-detail-layout,
  .contact-layout,
  .cart-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .header-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .action-label {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem 1rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .mega-menu {
    position: static;
    width: 100%;
  }

  .mega-parents {
    width: 100%;
    min-height: auto;
    border-right: 0;
  }

  .mega-subs {
    position: static;
    width: 100%;
  }

  .hero-side-panel,
  .trust-bar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-overlay {
    padding: 1.25rem;
  }
}