
@scope (.vlab-product-grid) {
  * { box-sizing: border-box; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; cursor: pointer; }
  :focus-visible { outline: 3px solid var(--blue-hi); outline-offset: 2px; }
  svg { flex: none; }


  .thumb { aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, #e9eef5 0 14px, #f4f6f9 14px 28px); display: grid; place-items: center; color: #7d8ba3; font-size: 13px; }
  .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
  .body h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
  .spec { margin: 0; font-size: 13px; color: #5b6880; }
  .buy { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
  .price { font-size: 20px; font-weight: 700; }
  .price small { font-size: 12px; font-weight: 500; color: #5b6880; }
  .add { border: 0; border-radius: 6px; background: var(--night); color: var(--white); padding: 9px 14px; font-size: 14px; font-weight: 600; }
  .add:hover { background: var(--blue); }

}



  /* Layout Wrapper */
.vlab-product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: Inter, sans-serif;
  color: #1e293b;
  box-sizing: border-box;
  padding-left:15px;
}

.vlab-product-grid *,
.vlab-product-grid ::before,
.vlab-product-grid ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Individual Card Styling */
.vlab-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.vlab-product-card:hover {
  box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.08);
}

/* Badges Header */
.vlab-card-badges {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.vlab-badge-resolution {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.04em;
  line-height: 1;
}

.vlab-badge-resolution .vlab-plus {
  font-size: 24px;
  vertical-align: super;
}

.vlab-badge-connect {
  text-align: right;
}

.vlab-connect-label {
  display: block;
  font-size: 7.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.vlab-connect-box {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.25);
}

.vlab-brand-name {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.vlab-u-series {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 7.5px;
  font-weight: 700;
  margin-top: 2px;
}

/* Product Image Area */
.vlab-card-image-wrap {
  text-align: center;
  padding: 20px 0 10px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vlab-card-image-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Content Details */
.vlab-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  margin-top: 5px;
}



/* Zoom the image on hover */
.vlab-card-image-wrap a:hover img,
.vlab-card-image-wrap:hover img {
    transform: scale(1.08);
}

/* Fade in the gradient color contrast on hover */
.vlab-card-image-wrap a:hover::after,
.vlab-card-image-wrap:hover::after {
    opacity: 1;
}




.vlab-product-brand {
  color: #2563eb;
  font-size: 0.85rem;
  font-weight: 600;
}

.vlab-product-title {
  font-size: 0.9rem;
  font-weight: bold;
  color: #1e293b;
  line-height: 1.4;
}


.vlab-product-title a:hover{
  color: #2563eb;

}

.vlab-product-shortdesc {
  font-size: 0.73rem;
  font-weight: 300;
  color: #1e293b;
  line-height: 1.2;
}

.vlab-product-sku {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

.vlab-product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 4px;
}

/* Footer & Buttons */
.vlab-card-footer {
  margin-top: 18px;
}

.vlab-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

/* Primary "Add to cart" button */
.vlab-btn-primary {
  background-color: #312e81;
  color: #ffffff;
  border-color: #312e81;
}

.vlab-btn-primary:hover {
  background-color: #3730a3;
}

/* Outline "Notify Me" button */
.vlab-btn-outline {
  background-color: transparent;
  color: #312e81;
  border-color: #312e81;
}

.vlab-btn-outline:hover {
  background-color: #eef2ff;
}




/* Variant Selector Dropdown Styling */
.vlab-card-footer {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Space between dropdown and button */
}

.vlab-variant-selector-wrap {
  position: relative;
  width: 100%;
  padding-bottom:10px;
}

.vlab-variant-select {
  width: 100%;
  padding: 12px 18px;
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e293b;
  background-color: #ffffff;
  border: 2px solid #0f172a; /* Clean dark border */
  border-radius: 9999px; /* Fully rounded pill shape */
  outline: none;
  cursor: pointer;
  appearance: none; /* Removes default OS styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3Cpolyline points='6 9 12 15 18 9'%3e%3C/polyline%3e%3C/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vlab-variant-select:hover {
  border-color: #312e81;
}

.vlab-variant-select:focus {
  border-color: #312e81;
  box-shadow: 0 0 0 3px rgba(49, 46, 129, 0.15);
}


/* Color Selector Styles */
.vlab-color-selector {
  margin-bottom: 12px;
}

.vlab-color-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
}

.vlab-selected-color-name {
  color: #0f172a;
  font-weight: 700;
}

.vlab-swatches {
  display: flex;
  gap: 10px;
}

.vlab-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

/* Light/White swatch inner border fix so it's visible against white backgrounds */
.vlab-swatch[style*="background-color: #ffffff"], 
.vlab-swatch[style*="background-color: rgb(255, 255, 255)"] {
  border: 2px solid #94a3b8;
}

.vlab-swatch:hover {
  transform: scale(1.1);
}

.vlab-swatch.active {
  border-color: #312e81;
  box-shadow: 0 0 0 2px rgba(49, 46, 129, 0.2);
  transform: scale(1.05);
}

