/* Lab Pegboard template: real category data and photos can be added without changing the page structure. */
.pegboard-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.pegboard-category-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    color: #333;
    text-align: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 14px;
    transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.pegboard-category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 102, 255, .3);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .06);
}

.pegboard-category-image {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    padding: 18px;
    border: 0;
    border-radius: 12px;
    background: #fff;
}

.pegboard-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pegboard-category-name {
    margin-bottom: 15px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.pegboard-category-action {
    display: inline-block;
    margin-top: auto;
    padding: 6px 18px;
    color: #fff;
    background: linear-gradient(135deg, #FF6B35, #0066FF);
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
}

body[data-pegboard-category] .pegboard-page-heading {
    margin: 20px 0 28px;
}

body[data-pegboard-category] .pegboard-page-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.15;
    background: linear-gradient(135deg, #F24A11, #0032FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body[data-pegboard-category] .pegboard-specification {
    margin: 0 0 22px;
}

.pegboard-specification h2 {
    margin: 0 0 12px;
    font-size: 1.8rem;
    line-height: 1.25;
    background: linear-gradient(135deg, #F24A11, #0032FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pegboard-specification p,
.pegboard-models-empty p {
    margin: 0;
    color: #526783;
    font-size: 1.05rem;
    line-height: 1.65;
}

.pegboard-specification-list {
    margin: 0;
    border-top: 1px solid #d9e2ee;
}

body[data-pegboard-category] .pegboard-specification-row {
    display: grid;
    grid-template-columns: minmax(180px, .36fr) minmax(0, 1fr);
    gap: 34px;
    padding: 10px 0;
    border-bottom: 1px solid #d9e2ee;
}

.pegboard-specification-row dt {
    color: #12233c;
    font-size: 1.1rem;
    font-weight: 700;
}

.pegboard-specification-row dd {
    margin: 0;
    color: #526783;
    font-size: 1.05rem;
    line-height: 1.45;
}

.pegboard-models > h2 {
    margin: 0 0 28px;
    color: #12233c;
    font-size: 1.65rem;
}

.pegboard-model-groups {
    display: grid;
    gap: 30px;
}

.pegboard-model-row {
    display: grid;
    gap: 28px;
    align-items: start;
}

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

.pegboard-model-row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pegboard-model-row--images-4 {
    width: 100%;
    max-width: none;
}

.pegboard-model-row--images-6 {
    width: 100%;
    max-width: none;
}

.pegboard-model-group {
    min-width: 0;
}

.pegboard-model-group h3 {
    margin: 0 0 10px;
    color: #12233c;
    font-size: 1rem;
}

.pegboard-image-row {
    display: grid;
    gap: 8px;
}

.pegboard-image-row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.pegboard-product-card {
    min-width: 0;
    padding: 4px;
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(18, 35, 60, .04);
    transition: transform .22s ease, box-shadow .22s ease;
}

.pegboard-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 50, 255, .12);
}

.pegboard-product-image {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-radius: 5px;
}

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

.pegboard-models-empty {
    padding: 28px;
    border: 1px dashed #cbd7e8;
    border-radius: 12px;
    background: #f8fafc;
}

.pegboard-models-empty h2 {
    margin: 0 0 10px;
    color: #12233c;
    font-size: 1.55rem;
}

.pegboard-contact-wrap {
    margin-top: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .pegboard-category-grid { grid-template-columns: 1fr; }
    .pegboard-category-card { padding: 18px 12px; }
    .pegboard-category-image { height: 260px; }
    .pegboard-category-name { margin-bottom: 12px; font-size: 1rem; }
    body[data-pegboard-category] .pegboard-page-heading { margin: 16px 0 24px; }
    body[data-pegboard-category] .pegboard-specification { margin-bottom: 22px; }
    .pegboard-specification h2 { margin-bottom: 12px; font-size: 1.8rem; }
    .pegboard-models-empty { padding: 22px 18px; }
    .pegboard-specification p,
    .pegboard-models-empty p { font-size: 1rem; }
    body[data-pegboard-category] .pegboard-specification-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 9px 0;
    }
    .pegboard-specification-row dt { font-size: 1rem; }
    .pegboard-specification-row dd { font-size: 1rem; line-height: 1.45; }
    .pegboard-model-row--2,
    .pegboard-model-row--3 { grid-template-columns: 1fr; gap: 24px; }
    .pegboard-model-groups { gap: 24px; }
    .pegboard-product-card { padding: 4px; }
}

@media (max-width: 520px) {
    .pegboard-models > h2 { font-size: 1.4rem; }
    .pegboard-model-group h3 { font-size: .92rem; }
    .pegboard-image-row { gap: 6px; }
}

