/* ONTECH security storefront refresh */
:root {
  --secure-ink: #091524;
  --secure-navy: #071c36;
  --secure-blue: #0e315f;
  --secure-red: #d7192f;
  --secure-red-2: #ef3349;
  --secure-soft: #f3f6fa;
  --secure-line: #dfe7f1;
  --secure-muted: #65748a;
  --secure-shadow: 0 22px 55px rgba(7, 28, 54, .13);
}

.product-review-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.review-card {
  border-top: 1px solid #e2eaf4;
  padding: 14px 0;
}

.review-card strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #071c36;
}

.review-card span {
  color: #d7192f;
  letter-spacing: 1px;
}

.review-form {
  display: grid;
  gap: 12px;
}

@media (max-width: 900px) {
  .product-review-layout {
    grid-template-columns: 1fr;
  }
}

/* Final gallery guard: stable thumbnails for 2nd, 3rd, 4th and 5th images */
.product-detail-layout .product-gallery {
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  gap: 14px !important;
  align-items: start !important;
}

.product-detail-layout .product-main-image {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
}

.product-detail-layout .product-thumbs {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-auto-rows: 92px !important;
  gap: 10px !important;
  align-content: start !important;
  max-height: 520px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 2px !important;
}

.product-detail-layout .product-thumbs button {
  display: grid !important;
  place-items: center !important;
  width: 92px !important;
  height: 92px !important;
  min-width: 92px !important;
  min-height: 92px !important;
  max-width: 92px !important;
  max-height: 92px !important;
  border-radius: 14px !important;
  padding: 7px !important;
  overflow: hidden !important;
}

.product-detail-layout .product-thumbs img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 10px !important;
}

@media (max-width: 900px) {
  .product-detail-layout .product-gallery {
    grid-template-columns: 1fr !important;
  }

  .product-detail-layout .product-main-image {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .product-detail-layout .product-thumbs {
    grid-column: 1 !important;
    grid-row: 2 !important;
    grid-template-columns: repeat(5, 82px) !important;
    grid-auto-rows: 82px !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .product-detail-layout .product-thumbs button {
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
    min-height: 82px !important;
  }
}

html { background: #f3f6fa; }

body {
  background: radial-gradient(circle at 12% 4%, rgba(215, 25, 47, .08), transparent 32%), linear-gradient(180deg, #f7f9fc 0%, #eef3f8 48%, #f7f9fc 100%) !important;
  color: var(--secure-ink) !important;
}

.container { width: min(1240px, calc(100% - 34px)) !important; }

.site-header {
  position: sticky !important;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 12px 34px rgba(7, 28, 54, .08) !important;
  backdrop-filter: blur(16px);
}

.topbar {
  background: linear-gradient(90deg, #071c36, #102f56) !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar-inner { min-height: 39px; }
.contact-line { gap: 10px !important; }

.contact-line span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  padding: 0 10px;
  color: rgba(255,255,255,.86);
}

.currency-form select {
  border-color: rgba(255,255,255,.24) !important;
  background: rgba(255,255,255,.09) !important;
}

.mainbar {
  gap: 22px !important;
  padding: 17px 0 !important;
}

.brand { min-width: 230px !important; }

.site-logo {
  width: 235px !important;
  filter: drop-shadow(0 10px 18px rgba(7, 28, 54, .08));
}

.search {
  height: 48px;
  border: 1px solid #dae4ef !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(7, 28, 54, .06) !important;
}

.search input { font-size: 14px; }

.search button,
.btn,
.slider-btn,
.small-btn.ok {
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--secure-red), var(--secure-red-2)) !important;
  box-shadow: 0 12px 24px rgba(215, 25, 47, .22);
}

.user-links { gap: 9px !important; }

.user-links a:not(.icon-link),
.accent-link {
  min-height: 42px;
  display: inline-flex !important;
  align-items: center;
  border: 1px solid #dfe7f1 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--secure-navy) !important;
  padding: 0 13px !important;
}

.accent-link {
  border-color: rgba(215,25,47,.24) !important;
  background: #fff5f6 !important;
  color: var(--secure-red) !important;
}

.icon-link {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 22px rgba(7, 28, 54, .07);
}

.icon-link:hover,
.user-links a:not(.icon-link):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(7, 28, 54, .12);
}

.mega-wrap {
  border-top: 1px solid #eef2f7 !important;
  background: rgba(255,255,255,.9) !important;
}

.mega { min-height: 64px !important; }

.mega-button {
  height: 46px;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--secure-navy), var(--secure-blue)) !important;
  box-shadow: 0 12px 28px rgba(7, 28, 54, .18) !important;
}

.mega-links a {
  min-height: 46px !important;
  border-color: #e6edf5 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #fff, #f8fafc) !important;
  color: #25354c !important;
}

.mega-links a:hover,
.mega-column a:not(.mega-title):hover {
  border-color: rgba(215,25,47,.24) !important;
  background: #fff5f6 !important;
  color: var(--secure-red) !important;
}

.mega-panel {
  border-radius: 0 0 18px 18px !important;
  border-color: #dfe7f1 !important;
  box-shadow: 0 26px 58px rgba(7, 28, 54, .16) !important;
}

.mega-column {
  border-radius: 14px !important;
  box-shadow: 0 12px 24px rgba(7, 28, 54, .04);
}

.cat-menu-icon {
  background: linear-gradient(135deg, #fff3f4, #eef5ff) !important;
  color: var(--secure-red) !important;
}

.hero {
  background: linear-gradient(180deg, rgba(7,28,54,.04), rgba(7,28,54,0) 52%), transparent !important;
}

.hero-shell { padding: 28px 0 14px !important; }

.hero-slider {
  height: 510px !important;
  min-height: 510px !important;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 24px !important;
  background: #071c36 !important;
  box-shadow: var(--secure-shadow) !important;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: auto 22px 18px 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  z-index: 3;
}

.slide {
  height: 510px !important;
  min-height: 510px !important;
  padding: 58px !important;
}

.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
}

.slide-bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,15,30,.92) 0%, rgba(7,28,54,.68) 42%, rgba(7,28,54,.18) 78%), linear-gradient(180deg, transparent 55%, rgba(5,15,30,.34));
  z-index: 0;
}

.slide > * {
  position: relative;
  z-index: 1;
}

.badge {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px !important;
  background: rgba(255,255,255,.11) !important;
  letter-spacing: .08em !important;
}

.hero h1,
.slide h1 {
  max-width: 650px !important;
  margin: 18px 0 14px !important;
  color: #fff !important;
  font-size: clamp(34px, 4vw, 56px) !important;
  font-weight: 820 !important;
  line-height: 1.02 !important;
}

.slide p {
  max-width: 590px !important;
  color: rgba(255,255,255,.82) !important;
  font-size: 16px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 6px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.9);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.hero-proof svg {
  width: 16px;
  height: 16px;
  color: #ff6a78;
}

.slider-btn {
  min-height: 46px;
  display: inline-flex !important;
  align-items: center;
  margin-top: 18px !important;
  padding: 0 22px !important;
  color: #fff !important;
}

.slider-dots {
  left: 58px !important;
  bottom: 38px !important;
}

.slider-dots span {
  width: 38px !important;
  height: 4px !important;
  background: rgba(255,255,255,.48) !important;
}

.slider-dots span.active { background: var(--secure-red) !important; }

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(7,28,54,.62);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 14px 28px rgba(7,28,54,.24);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.slider-arrow:hover {
  border-color: rgba(255,255,255,.78);
  background: var(--secure-red);
  transform: translateY(-50%) scale(1.04);
}

.slider-arrow {
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.slider-arrow-prev { left: 22px; }
.slider-arrow-next { right: 22px; }

.inline-editable {
  position: relative;
}

.inline-edit-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  display: none;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(7,28,54,.22);
}

.inline-editable:hover .inline-edit-btn {
  display: inline-flex;
  align-items: center;
}

.inline-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 34px 16px;
  background: rgba(3, 11, 21, .58);
  backdrop-filter: blur(7px);
}

.inline-edit-modal.open {
  display: flex;
}

.inline-edit-dialog {
  width: min(980px, 100%);
  border-radius: 18px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(3, 11, 21, .32);
}

.inline-edit-dialog h2 {
  margin: 0 0 18px;
  color: var(--secure-navy);
}

.inline-edit-dialog h3 {
  margin: 0 0 12px;
  color: var(--secure-navy);
  font-size: 16px;
}

.inline-edit-close {
  float: right;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #111827;
  font-size: 22px;
  cursor: pointer;
}

.inline-edit-row {
  margin-top: 16px;
  border: 1px solid #e2eaf4;
  border-radius: 14px;
  background: #f8fafc;
  padding: 16px;
}

.inline-edit-preview {
  display: block;
  width: 150px;
  max-height: 84px;
  margin-top: 10px;
  border: 1px solid #e2eaf4;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.inline-save-btn {
  min-height: 44px;
  margin-top: 18px;
  border-radius: 12px !important;
}

.visual-cats {
  gap: 18px !important;
  margin-top: 4px;
}

.visual-cat {
  min-height: 244px;
  border-radius: 18px !important;
  background: #fff !important;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(7, 28, 54, .09) !important;
}

.visual-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7,28,54,.78));
  pointer-events: none;
}

.visual-cat img {
  height: 244px !important;
  transition: transform .35s ease;
}

.visual-cat:hover img { transform: scale(1.045); }

.visual-cat strong,
.visual-cat span {
  position: absolute !important;
  left: 20px;
  right: 20px;
  color: #fff !important;
  padding: 0 !important;
}

.visual-cat strong {
  bottom: 42px;
  font-size: 18px;
}

.visual-cat span {
  bottom: 19px;
  color: rgba(255,255,255,.78) !important;
}

.storefront-band {
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(7,28,54,.97), rgba(14,49,95,.94)), url("../img/banners/security-hero.svg") right center/auto 120% no-repeat !important;
  box-shadow: var(--secure-shadow) !important;
}

.brand-marquee { margin-top: 22px !important; }

.brand-marquee span {
  border-radius: 14px !important;
  background: rgba(255,255,255,.86) !important;
  box-shadow: 0 12px 26px rgba(7,28,54,.06) !important;
}

.features { gap: 18px !important; }

.feature {
  min-height: 138px !important;
  border: 1px solid #e2eaf4 !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.9) !important;
  box-shadow: 0 16px 34px rgba(7,28,54,.07) !important;
}

.feature-icon {
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--secure-navy), var(--secure-blue)) !important;
}

.section { padding: 34px 0 !important; }

.section-head {
  margin-bottom: 18px !important;
  border: 0 !important;
}

.section h2,
.page-title {
  color: var(--secure-navy) !important;
  font-weight: 820 !important;
}

.section h2 { padding-left: 0 !important; }
.section h2::before { display: none !important; }

.section-head h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secure-red), var(--secure-navy));
}

.grid-products {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.product-card {
  border: 1px solid #e3ebf5 !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 14px 34px rgba(7,28,54,.08) !important;
  overflow: visible !important;
}

.product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 24px 58px rgba(7,28,54,.14) !important;
}

.product-card .product-image {
  margin: 10px 10px 0;
  border-radius: 15px !important;
  background: radial-gradient(circle at 50% 28%, rgba(215,25,47,.08), transparent 34%), linear-gradient(180deg, #fff, #eef4fa) !important;
}

.product-card .product-image img {
  aspect-ratio: 1.12 / .86 !important;
  padding: 18px !important;
  object-fit: contain !important;
}

.product-badge {
  left: 12px !important;
  top: 12px !important;
  min-height: 27px;
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(7,28,54,.88) !important;
  backdrop-filter: blur(8px);
}

.product-body {
  min-height: 258px !important;
  padding: 16px !important;
}

.product-meta {
  color: var(--secure-muted) !important;
  font-size: 11px !important;
  text-transform: uppercase;
}

.product-title {
  color: #12213a !important;
  font-size: 15px !important;
}

.product-card .price-row { min-height: 96px !important; }
.price { color: var(--secure-red) !important; }

.stock {
  min-height: 30px;
  border-radius: 999px !important;
}

.stock-ok {
  background: #eafaf1 !important;
  color: #057348 !important;
}

.stock-no {
  background: #fff1f2 !important;
  color: #b91c1c !important;
}

.product-card .card-actions.card-actions-icons button.card-icon-button {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
}

.page-box,
.side-cats,
.checkout-summary {
  border: 1px solid #e2eaf4 !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 16px 36px rgba(7,28,54,.08) !important;
}

.category-layout { gap: 26px !important; }

.side-cats {
  position: sticky;
  top: 178px;
}

.filter-box input,
.filter-box select,
.field input,
.field textarea,
.field select {
  border-radius: 10px !important;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 22px 0 -6px;
  color: var(--secure-muted);
  font-size: 13px;
  font-weight: 750;
}

.detail-breadcrumb a { color: var(--secure-blue); }

.detail-breadcrumb strong {
  color: var(--secure-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr) !important;
  gap: 34px !important;
  margin-top: 24px !important;
  padding: 28px !important;
  border-radius: 24px !important;
}

.product-gallery {
  display: grid;
  gap: 14px;
  align-self: start;
}

.product-main-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  border: 1px solid #dfe7f1 !important;
  border-radius: 22px !important;
  background: radial-gradient(circle at 50% 28%, rgba(215,25,47,.08), transparent 34%), linear-gradient(180deg, #fff, #f3f7fb) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.78), 0 18px 42px rgba(7,28,54,.08) !important;
  overflow: hidden;
}

.product-main-image::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(7,28,54,.06);
  border-radius: 18px;
  pointer-events: none;
}

.product-main-image img {
  width: min(92%, 560px) !important;
  height: auto !important;
  max-height: 460px;
  object-fit: contain !important;
  filter: drop-shadow(0 18px 24px rgba(7,28,54,.16));
}

.product-main-image > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  background: rgba(7,28,54,.9);
  color: #fff;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 850;
}

.product-thumbs {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px !important;
}

.product-thumbs button {
  height: 86px;
  border: 1px solid #dfe7f1 !important;
  border-radius: 14px !important;
  background: #fff !important;
  padding: 8px !important;
}

.product-thumbs button.active {
  border-color: var(--secure-red) !important;
  box-shadow: 0 0 0 4px rgba(215,25,47,.08);
}

.product-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-summary { min-width: 0; }

.product-summary .member-price {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  background: #fff1f2;
  color: var(--secure-red) !important;
  padding: 0 12px;
}

.product-summary .page-title {
  margin-top: 14px !important;
  font-size: clamp(28px, 3vw, 42px) !important;
}

.product-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  border: 1px solid #e2eaf4 !important;
  border-radius: 16px !important;
  background: #f7fafc !important;
}

.product-facts span {
  display: grid;
  gap: 4px;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  color: var(--secure-muted);
  font-size: 12px;
}

.product-facts strong { color: var(--secure-navy); }

.product-stock-line {
  justify-content: flex-start !important;
  margin: 15px 0 10px;
}

.price-panel {
  border: 1px solid rgba(215,25,47,.12) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #fff5f6, #fff) !important;
  padding: 18px !important;
}

.price-panel .price { font-size: 30px !important; }

.detail-service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0 16px;
}

.detail-service-strip span {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 76px;
  border: 1px solid #e2eaf4;
  border-radius: 14px;
  background: #fff;
  color: #243247;
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}

.detail-service-strip svg {
  width: 20px;
  height: 20px;
  color: var(--secure-red);
}

.variant-list {
  border-radius: 16px !important;
  background: #f7fafc !important;
}

.variant-pill { border-radius: 12px !important; }

.product-actions.detail-actions {
  display: grid !important;
  grid-template-columns: 1fr;
  align-items: stretch !important;
  gap: 10px !important;
  margin: 16px 0 18px;
}

.product-actions.detail-actions form {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

.product-actions.detail-actions .inline-action-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 78px minmax(130px, auto);
}

.detail-variant-select,
.detail-qty {
  min-height: 44px !important;
  border-radius: 12px !important;
}

.product-actions.detail-actions .small-btn {
  min-height: 44px !important;
  border-radius: 12px !important;
}

.product-tabs {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  border-bottom: 1px solid #e2eaf4;
  padding-bottom: 8px;
}

.product-tabs button {
  border: 1px solid #e2eaf4 !important;
  background: #fff !important;
  color: var(--secure-navy) !important;
  padding: 11px 14px !important;
  font-weight: 850;
}

.product-tabs button.active {
  background: var(--secure-navy) !important;
  border-color: var(--secure-navy) !important;
  color: #fff !important;
}

.product-tab-panel { margin-top: 14px; }
.product-description-content { border-radius: 14px; background: #fff; }
.zoom-modal.open { backdrop-filter: blur(8px); }

.ontech-footer {
  background: linear-gradient(180deg, #071c36, #030b15) !important;
}

.footer-contact-card {
  background: rgba(255,255,255,.075) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

@media (max-width: 1100px) {
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .product-detail-layout { grid-template-columns: 1fr !important; }
  .side-cats { position: static; }
}

@media (max-width: 900px) {
  .site-header { position: relative !important; }
  .mainbar { display: grid !important; grid-template-columns: 1fr; }
  .brand { justify-content: center; }
  .search { order: 2; }
  .user-links { order: 3; justify-content: center; flex-wrap: wrap; }
  .mega-links { grid-auto-columns: 150px !important; }
  .hero-slider,
  .slide { height: 455px !important; min-height: 455px !important; }
  .slide { padding: 34px !important; }
  .slider-arrow { width: 38px; height: 38px; }
  .slider-arrow-prev { left: 12px; }
  .slider-arrow-next { right: 12px; }
  .visual-cats,
  .features,
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .product-main-image { min-height: 410px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1240px) !important; }
  .contact-line span { width: 100%; justify-content: center; }
  .site-logo { width: 210px !important; }
  .hero-slider,
  .slide { height: 520px !important; min-height: 520px !important; }
  .slide { padding: 28px !important; }
  .hero h1,
  .slide h1 { font-size: 32px !important; }
  .hero-proof { display: grid; }
  .visual-cats,
  .features,
  .grid-products,
  .detail-service-strip,
  .product-facts { grid-template-columns: 1fr !important; }
  .product-detail-layout { padding: 16px !important; }
  .product-main-image { min-height: 330px; }
  .product-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-actions.detail-actions .inline-action-form { grid-template-columns: 1fr; }
}

/* Product detail purchase actions: stable professional layout */
.product-summary .product-actions.detail-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
  margin: 18px 0 20px !important;
  padding: 14px !important;
  border: 1px solid #e2eaf4 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #fff, #f8fafc) !important;
  box-shadow: 0 14px 30px rgba(7, 28, 54, .06) !important;
}

.product-summary .product-actions.detail-actions form {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.product-summary .product-actions.detail-actions .inline-action-form {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 86px minmax(150px, .42fr) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.product-summary .product-actions.detail-actions .inline-action-form.no-variant-select {
  grid-template-columns: 86px minmax(180px, 1fr) !important;
}

.product-summary .detail-variant-select,
.product-summary .detail-qty,
.product-summary .product-actions.detail-actions .small-btn {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
}

.product-summary .detail-variant-select,
.product-summary .detail-qty {
  border: 1px solid #d9e3ef !important;
  background: #fff !important;
}

.product-summary .product-actions.detail-actions .small-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 14px !important;
  white-space: nowrap !important;
  text-align: center !important;
  box-shadow: none !important;
}

.product-summary .product-actions.detail-actions .inline-action-form .small-btn.ok {
  background: linear-gradient(135deg, #d7192f, #ef3349) !important;
  color: #fff !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 24px rgba(215, 25, 47, .2) !important;
}

.product-summary .product-actions.detail-actions form:not(.inline-action-form) .small-btn {
  border: 1px solid #dfe7f1 !important;
  background: #fff !important;
  color: #071c36 !important;
  font-weight: 850 !important;
}

.product-summary .product-actions.detail-actions form:not(.inline-action-form) .small-btn:hover {
  border-color: rgba(215, 25, 47, .28) !important;
  background: #fff5f6 !important;
  color: #d7192f !important;
}

@media (max-width: 620px) {
  .product-summary .product-actions.detail-actions {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }

  .product-summary .product-actions.detail-actions .inline-action-form,
  .product-summary .product-actions.detail-actions .inline-action-form.no-variant-select {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile storefront header/menu rebuild */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #071c36;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  .topbar {
    font-size: 11px !important;
  }

  .topbar-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 8px !important;
    padding: 9px 0 !important;
  }

  .contact-line {
    justify-content: center !important;
    gap: 8px 12px !important;
    text-align: center !important;
  }

  .contact-line span {
    width: auto !important;
    min-width: 0 !important;
  }

  .mainbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 0 !important;
  }

  .brand {
    min-width: 0 !important;
    justify-content: flex-start !important;
    margin: 0 !important;
  }

  .site-logo {
    width: min(190px, 54vw) !important;
    max-height: 58px !important;
    object-fit: contain !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
  }

  .search {
    display: flex !important;
    order: 3 !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    border-radius: 8px !important;
  }

  .search input {
    min-width: 0 !important;
    padding: 12px 11px !important;
    font-size: 13px !important;
  }

  .search button {
    flex: 0 0 auto !important;
    min-width: 58px !important;
    padding: 0 12px !important;
  }

  .user-links.icon-links {
    order: 4 !important;
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 !important;
    align-items: center !important;
  }

  .user-links.icon-links a {
    min-width: 0 !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 7px 8px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .icon-link {
    position: relative !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  .user-links.icon-links a.icon-link {
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .icon-link .nav-icon,
  .icon-link svg {
    width: 16px !important;
    height: 16px !important;
  }

  .icon-link b {
    position: absolute !important;
    top: -4px !important;
    right: -3px !important;
    min-width: 15px !important;
    height: 15px !important;
    max-width: 22px !important;
    padding: 0 3px !important;
    border-radius: 999px !important;
    background: #d7192f !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    overflow: hidden !important;
    box-shadow: 0 0 0 2px #fff !important;
  }

  .mega-wrap {
    display: none !important;
    position: static !important;
    border-top: 1px solid #e7edf5 !important;
    background: #fff !important;
    box-shadow: 0 14px 28px rgba(7, 28, 54, .08) !important;
  }

  body.mobile-menu-open .mega-wrap {
    display: block !important;
  }

  .mega {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 12px 0 !important;
  }

  .mega-button {
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    border-radius: 8px !important;
  }

  .mega-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .mega-links a {
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 8px 9px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    color: #071c36 !important;
    font-size: 12px !important;
  }

  .mega-panel {
    display: none !important;
    position: static !important;
    grid-template-columns: 1fr !important;
    max-height: 58vh !important;
    overflow: auto !important;
    padding: 10px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
  }

  .mega-wrap.mobile-cats-open .mega-panel {
    display: grid !important;
  }

  .mega-column {
    min-height: 0 !important;
    padding: 10px !important;
    border-radius: 8px !important;
  }

  .mega-title,
  .mega-column a {
    min-width: 0 !important;
    gap: 8px !important;
    font-size: 12px !important;
  }

  .hero-shell {
    padding: 12px 0 8px !important;
  }

  .hero-slider,
  .slide {
    height: 320px !important;
    min-height: 320px !important;
    border-radius: 10px !important;
  }

  .slide {
    padding: 24px 22px !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-image: var(--slide-mobile-image) !important;
  }

  .slide-bg img {
    object-position: center center !important;
  }

  .slide .badge {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }

  .hero h1,
  .slide h1 {
    max-width: 78% !important;
    margin: 10px 0 8px !important;
    font-size: 25px !important;
    line-height: 1.12 !important;
  }

  .slide p {
    max-width: 72% !important;
    margin: 0 0 9px !important;
    font-size: 13px !important;
    line-height: 1.38 !important;
  }

  .hero-proof {
    display: none !important;
  }

  .slider-btn {
    min-height: 36px !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
  }

  .slider-dots {
    left: 22px !important;
    bottom: 14px !important;
  }

  .slider-dots span {
    width: 22px !important;
    height: 4px !important;
  }

  .slider-arrow {
    width: 34px !important;
    height: 34px !important;
    font-size: 22px !important;
  }

  .slider-arrow-prev {
    left: 8px !important;
  }

  .slider-arrow-next {
    right: 8px !important;
  }

  .visual-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding-top: 10px !important;
  }

  .visual-cat {
    border-radius: 8px !important;
    background: #fff !important;
  }

  .visual-cat::after {
    display: none !important;
  }

  .visual-cat img {
    height: 64px !important;
  }

  .visual-cat strong,
  .visual-cat span {
    position: static !important;
    left: auto !important;
    right: auto !important;
    color: #071c36 !important;
  }

  .visual-cat strong {
    padding: 7px 6px 1px !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden !important;
  }

  .visual-cat span {
    padding: 1px 6px 7px !important;
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    display: block !important;
    color: #d7192f !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .storefront-band,
  .brand-marquee {
    display: none !important;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 12px 0 4px !important;
  }

  .feature {
    min-height: 78px !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    padding: 10px !important;
    border-radius: 8px !important;
  }

  .feature-icon {
    width: 34px !important;
    height: 34px !important;
  }

  .feature-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .feature strong {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .feature span {
    display: none !important;
  }

  .section {
    padding: 18px 0 !important;
  }

  .section-head {
    margin-bottom: 10px !important;
  }

  .section h2,
  .page-title {
    font-size: 22px !important;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 20px, 1240px) !important;
  }

  .mainbar {
    gap: 9px !important;
  }

  .mobile-menu-toggle {
    min-width: 92px !important;
    padding: 0 12px !important;
  }

  .user-links.icon-links {
    gap: 5px !important;
  }

  .user-links.icon-links a:not(.icon-link) {
    flex: 1 1 auto !important;
    padding: 7px 6px !important;
    font-size: 10.5px !important;
  }

  .mega-links {
    grid-template-columns: 1fr !important;
  }

  .hero-slider,
  .slide {
    height: 286px !important;
    min-height: 286px !important;
  }

  .slide {
    padding: 20px 18px !important;
    background-position: 60% center !important;
  }

  .hero h1,
  .slide h1 {
    max-width: 80% !important;
    font-size: 21px !important;
  }

  .slide p {
    max-width: 78% !important;
    font-size: 12px !important;
  }

  .visual-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .visual-cat img {
    height: 54px !important;
  }

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

/* Final mobile visual fixes */
.slide > .slide-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.slide > .slide-bg img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

@media (max-width: 900px) {
  .visual-cats .visual-cat {
    display: grid !important;
    grid-template-rows: 52px auto auto !important;
    align-content: start !important;
    overflow: hidden !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .visual-cats .visual-cat img {
    display: block !important;
    width: 100% !important;
    height: 52px !important;
    object-fit: cover !important;
    grid-row: 1 !important;
  }

  .visual-cats .visual-cat strong,
  .visual-cats .visual-cat span {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: block !important;
    color: #071c36 !important;
    background: #fff !important;
  }

  .visual-cats .visual-cat strong {
    grid-row: 2 !important;
    padding: 4px 5px 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
  }

  .visual-cats .visual-cat span {
    grid-row: 3 !important;
    padding: 0 5px 5px !important;
    margin: 0 !important;
    color: #d7192f !important;
    font-size: 9px !important;
    line-height: 1.1 !important;
  }
}

@media (max-width: 520px) {
  .visual-cats .visual-cat {
    grid-template-rows: 46px auto auto !important;
  }

  .visual-cats .visual-cat img {
    height: 46px !important;
  }

  .visual-cats .visual-cat strong {
    padding-top: 3px !important;
    font-size: 9.5px !important;
  }

  .visual-cats .visual-cat span {
    padding-bottom: 4px !important;
    font-size: 8.5px !important;
  }
}
