:root {
  --brand: #d9003a;
  --brand-dk: #af002f;
  --brand-lt: #fff0f3;
  --black: #0f172a;
  --white: #fff;
  --bg: #f7f9fc;
  --card: #fff;
  --border: #dfe6ef;
  --muted: #64748b;
  --green: #0dbb7a;
  --header-height: 84px;
  --rail-width: 328px;
}

/* v2.3.1: quote removal confirmation and final conflict-proof controls. */
#vkmotoStore .vkm-availability-toggle,
#vkmotoProductPage .vkm-p-related-switch {
  border: 0 !important;
  outline: 0 !important;
  background: #edf1f6 !important;
}
#vkmotoStore .vkm-filter-pill,
#vkmotoProductPage .vkm-p-related-switch button {
  border: 0 !important;
  outline: 0 !important;
}

#vkmotoStore .vkm-remove-confirm,
#vkmotoProductPage .vkm-remove-confirm {
  --vkm-confirm-arrow-x: 50%;
  position: fixed;
  z-index: 1200;
  width: min(500px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 20px;
  padding: 30px 30px 26px;
  border: 1px solid #dce4ee;
  border-radius: 20px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 18px 50px rgba(15,23,42,.25);
}
#vkmotoStore .vkm-remove-confirm::after,
#vkmotoProductPage .vkm-remove-confirm::after {
  position: absolute;
  left: var(--vkm-confirm-arrow-x);
  bottom: -11px;
  width: 20px;
  height: 20px;
  border-right: 1px solid #dce4ee;
  border-bottom: 1px solid #dce4ee;
  background: #fff;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}
#vkmotoStore .vkm-remove-confirm-icon,
#vkmotoProductPage .vkm-remove-confirm-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}
#vkmotoStore .vkm-remove-confirm > strong,
#vkmotoProductPage .vkm-remove-confirm > strong {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
}
#vkmotoStore .vkm-remove-confirm > div,
#vkmotoProductPage .vkm-remove-confirm > div {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}
#vkmotoStore .vkm-remove-confirm button,
#vkmotoProductPage .vkm-remove-confirm button {
  min-width: 110px;
  min-height: 52px;
  padding: 10px 20px;
  border: 1px solid #d5d9df;
  border-radius: 13px;
  background: #fff;
  color: #2b2b2b;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
#vkmotoStore .vkm-remove-confirm button.is-confirm,
#vkmotoProductPage .vkm-remove-confirm button.is-confirm {
  min-width: 78px;
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb,var(--brand) 20%,transparent);
}

@media (max-width: 640px) {
  #vkmotoStore .vkm-remove-confirm,
  #vkmotoProductPage .vkm-remove-confirm {
    top: 50% !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 18px 18px;
    transform: translateY(-50%);
  }
  #vkmotoStore .vkm-remove-confirm::after,
  #vkmotoProductPage .vkm-remove-confirm::after { display: none; }
  #vkmotoStore .vkm-remove-confirm > strong,
  #vkmotoProductPage .vkm-remove-confirm > strong { font-size: 16px; }
  #vkmotoStore .vkm-remove-confirm > div,
  #vkmotoProductPage .vkm-remove-confirm > div { grid-column: 1 / -1; gap: 10px; }
  #vkmotoStore .vkm-remove-confirm button,
  #vkmotoProductPage .vkm-remove-confirm button { min-width: 0; flex: 1 1 50%; min-height: 46px; }
}

/* v2.3.0: slider, SVG icons, compact availability and mobile category sheet. */
.vkm-svg-icon {
  width: 1em;
  height: 1em;
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vkm-cart-icon .vkm-svg-icon { width: 21px; height: 21px; }
.vkm-whatsapp-btn .vkm-svg-icon,
.vkm-help-card .vkm-icon-whatsapp { width: 23px; height: 23px; }
.vkm-p-add .vkm-svg-icon,
.vkm-p-sticky .vkm-svg-icon { width: 18px; height: 18px; }
.vkm-availability-label .vkm-icon-filter { width: 17px; height: 17px; color: var(--brand); }

#vkmotoStore .vkm-features { display: none !important; }
#vkmotoStore .product-name { font-weight: 900 !important; }

#vkmotoStore button,
#vkmotoStore input,
#vkmotoStore a,
#vkmotoProductPage button,
#vkmotoProductPage input,
#vkmotoProductPage a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#vkmotoStore .vkm-qty-button,
#vkmotoStore .vkm-qty-remove,
#vkmotoProductPage .vkm-qty-button,
#vkmotoProductPage .vkm-qty-remove,
#vkmotoProductPage .vkm-p-qty button {
  user-select: none;
  -webkit-user-select: none;
}
#vkmotoStore .vkm-qty-value {
  appearance: textfield;
  -moz-appearance: textfield;
  outline: none !important;
}
#vkmotoStore .vkm-qty-value::-webkit-inner-spin-button,
#vkmotoStore .vkm-qty-value::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

#vkmotoStore .vkm-banner-slider { position: relative !important; }
#vkmotoStore .vkm-banner-slides { position: relative; width: 100%; }
#vkmotoStore .vkm-banner-slide { display: none; width: 100%; animation: vkmBannerFade .28s ease; }
#vkmotoStore .vkm-banner-slide.active { display: block; }
#vkmotoStore .vkm-banner-slide img { width: 100% !important; height: auto !important; object-fit: contain !important; }
#vkmotoStore .vkm-banner-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 38px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: rgba(15,23,42,.42);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}
#vkmotoStore .vkm-banner-arrow.is-prev { left: 14px; }
#vkmotoStore .vkm-banner-arrow.is-next { right: 14px; }
#vkmotoStore .vkm-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}
#vkmotoStore .vkm-banner-dots button {
  width: 24px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
}
#vkmotoStore .vkm-banner-dots button.active { background: var(--brand); }
@keyframes vkmBannerFade { from { opacity: .45; } to { opacity: 1; } }

#vkmotoStore .vkm-category-hero {
  width: 100%;
  margin: 0 0 18px;
  padding: 18px 24px;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: #fff;
}
#vkmotoStore .vkm-category-hero nav { display: flex; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
#vkmotoStore .vkm-category-hero > small { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
#vkmotoStore .vkm-category-hero h1 { margin: 3px 0 0 !important; color: var(--black); font-size: 25px !important; line-height: 1.15; font-weight: 900 !important; }

#vkmotoStore .vkm-availability {
  grid-template-columns: auto minmax(360px,auto) minmax(0,1fr) !important;
  gap: 14px !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(15,23,42,.025) !important;
}
#vkmotoStore .vkm-availability-label { display: flex; align-items: center; gap: 7px; font-weight: 900 !important; }
#vkmotoStore .vkm-availability-toggle { min-width: 0; overflow: hidden; }
#vkmotoStore .vkm-filter-pill { justify-content: center; }
#vkmotoStore .vkm-availability > p { min-width: 0; }

.vkm-mobile-categories-button,
.vkm-mobile-categories-drawer,
.vkm-mobile-categories-overlay { display: none; }

@media (max-width: 1100px) {
  #vkmotoStore .vkm-availability { grid-template-columns: auto minmax(0,1fr) !important; }
  #vkmotoStore .vkm-availability > p { display: none !important; }
}

@media (max-width: 767px) {
  #vkmotoStore .vkm-banner { margin-left: 0 !important; margin-right: 0 !important; border-radius: 0 0 14px 14px !important; }
  #vkmotoStore .vkm-banner-arrow { width: 32px; height: 44px; font-size: 26px; }
  #vkmotoStore .vkm-banner-arrow.is-prev { left: 7px; }
  #vkmotoStore .vkm-banner-arrow.is-next { right: 7px; }
  #vkmotoStore .vkm-banner-dots { bottom: 7px; }
  #vkmotoStore .vkm-banner-dots button { width: 18px; height: 4px; }
  #vkmotoStore .vkm-category-hero { margin-bottom: 10px; padding: 13px 14px; border-radius: 0 0 14px 14px; }
  #vkmotoStore .vkm-category-hero nav { margin-bottom: 7px; font-size: 10px; }
  #vkmotoStore .vkm-category-hero h1 { font-size: 20px !important; }
  #vkmotoStore .vkm-availability {
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }
  #vkmotoStore .vkm-availability-label { margin: 0 !important; font-size: 12px !important; }
  #vkmotoStore .vkm-availability-toggle { width: 100% !important; display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible !important; }
  #vkmotoStore .vkm-filter-pill { min-width: 0; min-height: 38px !important; gap: 5px !important; padding: 5px 7px !important; }
  #vkmotoStore .vkm-filter-pill strong { overflow: hidden; font-size: 11px !important; text-overflow: ellipsis; white-space: nowrap; }
  #vkmotoStore .vkm-filter-pill span { padding: 3px 5px; font-size: 8px; }
  #vkmotoStore .vkm-availability > p { display: block !important; margin: 0 !important; font-size: 10px !important; text-align: left !important; }
  #vkmotoStore .vkm-card-quantity input,
  #vkmotoStore .vkm-cart-quantity input,
  #vkmotoProductPage .vkm-p-qty input,
  #vkmotoProductPage .vkm-cart-quantity input { font-size: 16px !important; }

  #vkmotoStore .vkm-mobile-categories-button {
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 650;
    min-width: 170px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    border: 1px solid #475569;
    border-radius: 999px;
    background: #172033;
    box-shadow: 0 10px 28px rgba(15,23,42,.3);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
  }
  html.vkm-drawer-open #vkmotoStore .vkm-mobile-categories-button:not(.is-sheet-open) { opacity: 0; pointer-events: none; }
  #vkmotoStore .vkm-mobile-categories-button.is-sheet-open { z-index: 820; }
  #vkmotoStore .vkm-mobile-categories-overlay { z-index: 800; display: block; background: rgba(15,23,42,.48); }
  #vkmotoStore .vkm-mobile-categories-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 810;
    height: min(78dvh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -16px 42px rgba(15,23,42,.22);
    transform: translateY(102%);
    transition: transform .25s ease;
  }
  #vkmotoStore .vkm-mobile-categories-drawer.open { transform: translateY(0); }
  #vkmotoStore .vkm-mobile-categories-head {
    position: relative;
    min-height: 82px;
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) 44px;
    align-items: center;
    padding: 17px 14px 10px;
    background: var(--brand-dk);
    color: #fff;
  }
  #vkmotoStore .vkm-sheet-handle {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 54px;
    height: 5px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
  }
  #vkmotoStore .vkm-mobile-categories-head button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 34px;
    font-weight: 300;
  }
  #vkmotoStore .vkm-mobile-categories-head strong { grid-column: 2; text-align: center; font-size: 20px; font-weight: 900; }
  #vkmotoStore .vkm-mobile-categories-drawer > .vkm-category-search { min-height: 56px !important; flex: 0 0 auto; margin: 10px !important; border-radius: 999px !important; }
  #vkmotoStore .vkm-mobile-categories-drawer > .vkm-category-list { flex: 1 1 auto; overflow-y: auto; padding: 8px 10px calc(78px + env(safe-area-inset-bottom)); }
  #vkmotoStore .vkm-mobile-categories-drawer .vkm-category-list button { min-height: 64px !important; padding: 7px 12px !important; }
}

html.vkm-drawer-open { overflow: hidden; }

/* Keep inactive banners hidden even when a theme overrides article styles. */
#vkmotoStore .vkm-banner-slide[hidden] { display: none !important; }
#vkmotoStore .vkm-banner-slider { touch-action: pan-y pinch-zoom; }
#vkmotoStore .vkm-banner-pause { position: absolute; top: 10px; right: 10px; z-index: 4; padding: 6px 10px; border: 0; border-radius: 6px; background: rgba(15,23,42,.72); color: #fff; cursor: pointer; font-size: 12px; }
#vkmotoStore .vkm-banner-slider button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { #vkmotoStore .vkm-banner-slide { animation: none; } }
