/* ─── Hardware Context Panel ─── */
.hardware-cart { border: none; padding: 0; align-self: flex-start; }

@media screen and (min-width: 901px) {
    .hardware-cart, .hc-panel { position: sticky; top: 80px; }
}

.hc-panel {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.09);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
    overflow: hidden;
    width: 100%;
}

/* Brand header */
.hc-brand {
    padding: 1.1rem 1.4rem 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.hc-brand-logo { max-height: 36px; max-width: 120px; width: auto; object-fit: contain; }
.hc-brand-name { font-size: 12px; font-weight: 700; color: #666; letter-spacing: 0.05em; text-transform: uppercase; }

/* Product image */
.hc-image-wrap {
    background: #f8f9fa;
    display: flex; align-items: center; justify-content: center;
    padding: 1.75rem 2rem; min-height: 180px;
}
.hc-product-image { max-width: 100%; max-height: 200px; width: auto; height: auto; object-fit: contain; display: block; }

/* Body */
.hc-body { padding: 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; }

/* Availability */
.hc-avail {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 12px; font-weight: 700; padding: 0.3rem 0.75rem;
    border-radius: 999px; width: fit-content;
}
.hc-avail::before { content: '●'; font-size: 9px; line-height: 1; }
.hc-avail--in-stock     { background: #e6f9e6; color: #1a7a1a; }
.hc-avail--out-of-stock { background: #fff4e0; color: #9a5c00; }
.hc-avail--coming-soon  { background: #f0f0f0; color: #555; }
.hc-avail--default      { background: #eef4ff; color: #2655a0; }

/* Existing product promo (kept) */
.hc-promo {
    background: var(--wp--preset--color--yellow, #ffe600);
    color: #1a1a1a; border-radius: 8px; padding: 0.6rem 0.9rem;
    font-size: 12.5px; font-weight: 700;
}
.hc-promo-desc { font-weight: 400; font-size: 12px; margin-top: 0.2rem; opacity: 0.8; }

/* ── Software requirements / upsell ── */
.hc-software { display: flex; flex-direction: column; gap: 0.6rem; }
.hc-software-title {
    font-size: 12px; font-weight: 800; color: #1a1a1a;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.hc-software-intro { font-size: 12.5px; color: #555; line-height: 1.55; margin: 0 0 0.1rem; }

.hc-soft-card {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.75rem 0.85rem; border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px; text-decoration: none; background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.hc-soft-card:hover {
    border-color: var(--wp--preset--color--dark-blue, #041C38);
    box-shadow: 0 4px 14px rgba(4,28,56,0.08);
    transform: translateY(-1px);
}
.hc-soft-card__icon {
    width: 42px; height: 42px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    /* Orange gradient (same as the theme buttons) so the white product-icon SVGs read clearly */
    background: var(--wp--preset--gradient--vibrant-orange, linear-gradient(135deg, #FCBD00 0%, #FC8902 40%, #E85E15 100%));
}
.hc-soft-card__icon img { max-width: 28px; max-height: 28px; display: block; }
.hc-soft-card__icon svg { color: #fff; }
.hc-soft-card__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hc-soft-card__label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #8a8f98; }
.hc-soft-card__name { font-size: 14px; font-weight: 700; color: #1a1a1a; line-height: 1.25; }
.hc-soft-card__desc { font-size: 11.5px; color: #666; line-height: 1.4; margin-top: 1px; }
.hc-soft-card__arrow { margin-left: auto; flex-shrink: 0; color: var(--wp--preset--color--primary, #FC8902); font-weight: 800; }

/* Module features mini carousel */
.hc-features {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 0.7rem 0.85rem 0.6rem;
    background: #fafbfc;
}
.hc-feat-viewport { position: relative; min-height: 52px; }
.hc-feat {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; gap: 2px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.45s ease;
}
.hc-feat.is-active { opacity: 1; visibility: visible; position: relative; }
.hc-feat-name {
    font-size: 12.5px; font-weight: 700; color: #1a1a1a; line-height: 1.3;
    display: flex; align-items: center; gap: 0.4rem;
}
.hc-feat-name::before {
    content: '✓'; color: var(--wp--preset--color--accent-green, #19AC85);
    font-weight: 800; font-size: 12px; flex-shrink: 0;
}
.hc-feat-desc { font-size: 11px; color: #666; line-height: 1.45; }
.hc-feat-dots { display: flex; gap: 5px; justify-content: center; margin-top: 0.55rem; }
.hc-feat-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(0,0,0,0.18); transition: background 0.25s ease, width 0.25s ease;
}
.hc-feat-dot.is-active { background: var(--wp--preset--color--dark-blue, #041C38); width: 14px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
    .hc-feat { transition: none; }
}

/* CTA */
.hc-actions { display: flex; flex-direction: column; gap: 0.55rem; }
.hc-btn-primary {
    display: block; width: 100%; box-sizing: border-box;
    padding: 0.85rem 1.5rem;
    /* Same warm gradient as the header "Get Quote" — one consistent action colour */
    background: var(--wp--preset--gradient--vibrant-orange, linear-gradient(135deg, #FCBD00 0%, #FC8902 40%, #E85E15 100%));
    color: #ffffff; border: none; border-radius: 30px;
    font-size: 0.95rem; font-weight: 700; cursor: pointer;
    text-align: center; text-decoration: none; letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(252,137,2,0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hc-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(252,137,2,0.36); }
.hc-btn-primary:active { transform: translateY(0); }

/* Compare link */
.hc-links { border-top: 1px solid #f0f0f0; padding-top: 0.75rem; }
.hc-link {
    font-size: 12px; color: var(--wp--preset--color--dark-blue, #041C38);
    text-decoration: none; font-weight: 600; opacity: 0.8;
    transition: opacity 0.15s ease;
}
.hc-link:hover { opacity: 1; text-decoration: underline; }

@media screen and (max-width: 900px) {
    .hardware-cart, .hc-panel { position: static; }
    .hc-panel { border-radius: 12px; }
}

/* On mobile the product grid collapses — let the cart span the full row. */
@media screen and (max-width: 819px) {
    .hardware-cart { grid-column: span 2; }
}
