/* Deals button + dropdown in the desktop header, and reusable [data-deals-box] grid (pc-deals.js). */
@media (min-width: 700px) {
    .site-header .header-deals {
        position: relative;
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
    }

    .site-header .header-deals .header-deals-link {
        color: #e25d00;
    }

    .site-header .header-deals .header-deals-link svg {
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .site-header .header-deals.is-open .header-deals-link,
    .site-header .header-deals .header-deals-link:hover {
        color: #ff7a00;
    }

    .site-header .pcd-panel {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        width: min(820px, calc(100vw - 48px));
        padding: 18px 20px 14px;
        border: 1px solid #dfe3e8;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
        z-index: 10030;
        text-align: left;
        white-space: normal;
    }

    .site-header .pcd-panel[hidden] {
        display: none;
    }

    /* Invisible bridge so moving the mouse from the button to the panel keeps it open. */
    .site-header .pcd-panel::before {
        content: "";
        position: absolute;
        top: -14px;
        left: 0;
        right: 0;
        height: 14px;
    }

    .pcd-head {
        display: flex;
        align-items: baseline;
        gap: 10px;
        margin-bottom: 12px;
    }

    .pcd-head strong {
        color: #111827;
        font-size: 16px;
        font-weight: 750;
    }

    .pcd-head span {
        color: #6b7280;
        font-size: 13px;
    }
}

.pcd-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.pcd-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
    padding: 8px;
    border: 1px solid #edf0f3;
    border-radius: 8px;
    color: #111827;
    font-size: 13px;
    text-decoration: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.pcd-card:hover,
.pcd-card:focus-visible {
    border-color: #273469;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    outline: none;
}

.pcd-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    background: #f5f6f8;
    overflow: hidden;
}

.pcd-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pcd-card__badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ff7a00;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pcd-card__name {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pcd-card__meta {
    overflow: hidden;
    color: #7a818d;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pcd-card__price {
    color: #374151;
    font-size: 12px;
}

.pcd-card__price strong {
    color: #273469;
    font-size: 13px;
}

.pcd-all {
    display: inline-block;
    margin-top: 12px;
    color: #273469;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.pcd-all:hover,
.pcd-all:focus-visible {
    color: #ff7a00;
    text-decoration: underline;
}

.pcd-loading,
.pcd-empty {
    padding: 24px 8px;
    color: #6b7280;
    font-size: 13px;
    text-align: center;
}

.pcd-empty a {
    color: #273469;
    font-weight: 650;
}

@media (max-width: 899px) {
    .pcd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
