/* Shop by Device — ported from sections/shop-by-device.liquid */

.shop-by-device {
    padding: 3rem 1rem;
    background: var(--wp--preset--color--surface, #fff);
}

.shop-by-device .container {
    max-width: 1200px;
    margin: 0 auto;
}

.sbd__heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--wp--preset--color--accent, #0A0A0A);
}

.sbd__subheading {
    opacity: 0.7;
    margin: 0 0 1.5rem 0;
    color: var(--wp--preset--color--muted, #737373);
}

.sbd__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .sbd__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.sbd__tile {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease;
    border-radius: var(--wp--custom--radius-lg, 0.75rem);
    overflow: hidden;
}

.sbd__tile:hover {
    transform: translateY(-2px);
}

.sbd__image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--wp--custom--radius-lg, 0.75rem);
    background: var(--wp--preset--color--surface, rgba(127, 127, 127, 0.08));
    position: relative;
}

.sbd__image img,
.sbd__image .sbd__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sbd__image--placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(127, 127, 127, 0.10), rgba(127, 127, 127, 0.04));
    color: var(--wp--preset--color--muted, rgba(127, 127, 127, 0.4));
}

.sbd__image--placeholder svg {
    width: 50%;
    height: 50%;
    max-width: 80px;
}

.sbd__label {
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.2;
    padding: 0 0.25rem 0.25rem;
    color: var(--wp--preset--color--accent, #0A0A0A);
}
