/* ============================================================
   DIGITAL SIGNAGE BLOCK
   Multi-product quote builder. Re-uses Signstar CSS variables
   (--deep-sky-blue, --surface-dark, --text-primary, --font-body
   etc.) so the look matches the rest of the site.
   ============================================================ */

.ds-block {
    color: var(--text-primary, #f0f0f0);
}

/* ---- HERO ---------------------------------------------------- */
.ds-hero {
    position: relative;
    padding: 8rem 0 5rem;
    background: var(--surface-dark, #11131c);
    overflow: hidden;
}
.ds-hero--has-image { padding: 9rem 0 6rem; }
.ds-hero-bg { position: absolute; inset: 0; z-index: 0; }
.ds-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.ds-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(17,19,28,0.55) 0%, rgba(17,19,28,0.85) 100%);
}
.ds-hero-inner {
    position: relative; z-index: 1;
    max-width: 760px;
}
.ds-hero-title {
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    line-height: 1.1;
    margin: 0.4rem 0 1rem;
    color: #fff;
}
.ds-hero-text {
    font-size: 1.1rem;
    color: var(--text-secondary, #b8bccc);
    line-height: 1.6;
}

/* ---- KEY FEATURES BAR --------------------------------------- */
.ds-features {
    background: rgba(255, 255, 255, 0.04);
    border-block: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
}
.ds-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem 2rem;
}
.ds-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary, #b8bccc);
    font-size: 0.95rem;
}
.ds-feature img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(54%) sepia(96%) saturate(2378%) hue-rotate(170deg) brightness(102%) contrast(102%);
}

/* ---- PRODUCT PICKER ----------------------------------------- */
.ds-picker { padding: 4rem 0 2rem; }
.ds-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.ds-product-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.ds-product-card:hover,
.ds-product-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--deep-sky-blue, #00adef);
    box-shadow: 0 12px 28px rgba(0, 173, 239, 0.12);
}
.ds-product-card.is-active {
    border-color: var(--deep-sky-blue, #00adef);
    box-shadow: 0 0 0 2px rgba(0, 173, 239, 0.35);
}
.ds-product-card-image {
    aspect-ratio: 4 / 3;
    background: rgba(0, 0, 0, 0.2);
}
.ds-product-card-image img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.ds-product-card-body {
    padding: 1rem 1.1rem 1.2rem;
}
.ds-product-card-body h3 {
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
    color: #fff;
    line-height: 1.3;
}
.ds-product-card-body p {
    font-size: 0.88rem;
    color: var(--text-secondary, #b8bccc);
    margin: 0 0 0.6rem;
    line-height: 1.4;
}
.ds-product-card-from {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary, #b8bccc);
}
.ds-product-card-from strong { color: var(--deep-sky-blue, #00adef); font-size: 1.05rem; }
.ds-product-card-from span { font-size: 0.75rem; opacity: 0.7; }

/* ---- PRODUCT DETAIL ----------------------------------------- */
.ds-detail { padding: 3rem 0 4rem; }
.ds-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 900px) {
    .ds-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.ds-detail-image-wrap {
    aspect-ratio: 4 / 3;
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.ds-detail-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-detail-thumbs {
    list-style: none; margin: 0.75rem 0 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.ds-detail-thumbs button {
    width: 64px; height: 64px;
    padding: 0; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: transparent; cursor: pointer; overflow: hidden;
}
.ds-detail-thumbs button:hover { border-color: var(--deep-sky-blue, #00adef); }
.ds-detail-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.ds-detail-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #fff;
    margin: 0.4rem 0 1rem;
    line-height: 1.2;
}
.ds-detail-description {
    color: var(--text-secondary, #b8bccc);
    line-height: 1.65;
    font-size: 0.98rem;
}
.ds-detail-description p { margin: 0 0 0.8rem; }

.ds-detail-features {
    list-style: none;
    margin: 1rem 0 1.5rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.2rem;
}
.ds-detail-features li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.92rem;
    color: var(--text-secondary, #b8bccc);
}
.ds-detail-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--deep-sky-blue, #00adef);
    font-weight: 700;
}

/* ---- CONFIGURATOR ------------------------------------------- */
.ds-configurator {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}
.ds-config-row { margin-bottom: 1.2rem; }
.ds-config-row:last-child { margin-bottom: 0; }
.ds-config-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ds-config-help {
    font-size: 0.8rem;
    color: var(--text-secondary, #b8bccc);
    margin: 0.5rem 0 0;
    line-height: 1.4;
}

.ds-chip-group {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.ds-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-primary, #f0f0f0);
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    display: inline-flex; align-items: center; gap: 0.45rem;
}
.ds-chip:hover { border-color: rgba(0, 173, 239, 0.6); }
.ds-chip.is-selected {
    background: var(--deep-sky-blue, #00adef);
    border-color: var(--deep-sky-blue, #00adef);
    color: #fff;
}
.ds-chip-price {
    font-size: 0.78rem;
    opacity: 0.85;
    background: rgba(0,0,0,0.2);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}
.ds-chip.is-selected .ds-chip-price { background: rgba(0,0,0,0.25); }

.ds-config-row--inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.ds-config-inline-field input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
    color: var(--text-primary, #f0f0f0);
    font-size: 0.95rem;
}
.ds-config-inline-field input:focus {
    outline: none;
    border-color: var(--deep-sky-blue, #00adef);
}
.ds-qty {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    overflow: hidden;
}
.ds-qty input {
    width: 56px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-primary, #f0f0f0);
    font-size: 1rem;
    padding: 0.55rem 0;
    -moz-appearance: textfield;
}
.ds-qty input::-webkit-outer-spin-button,
.ds-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}
.ds-qty-btn {
    background: transparent;
    border: none;
    color: var(--text-primary, #f0f0f0);
    width: 40px; height: 100%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.15s ease;
}
.ds-qty-btn:hover { color: var(--deep-sky-blue, #00adef); }

/* ---- TOTAL --------------------------------------------------- */
.ds-total {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ds-total-rows { display: flex; flex-direction: column; gap: 0.35rem; }
.ds-total-row {
    display: flex; justify-content: space-between;
    font-size: 0.92rem;
    color: var(--text-secondary, #b8bccc);
}
.ds-total-grand {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(255,255,255,0.12);
    font-size: 1.1rem;
    color: #fff;
}
.ds-total-grand strong {
    font-size: 1.6rem;
    color: var(--deep-sky-blue, #00adef);
}
.ds-total-note {
    margin: 0.6rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted, #8a8e9d);
    line-height: 1.45;
}

/* ---- VIDEO --------------------------------------------------- */
.ds-detail-video { margin-top: 1.5rem; }
.ds-detail-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.ds-detail-video-wrap iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ---- QUOTE FORM SECTION ------------------------------------- */
.ds-quote-form-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4rem 0;
}
.ds-quote-form-inner {
    max-width: 760px;
    margin: 0 auto;
}
.ds-quote-form-intro {
    text-align: center;
    margin-bottom: 2rem;
}
.ds-quote-form-intro h2 {
    color: #fff;
    margin: 0.4rem 0 0.6rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.ds-quote-form-intro p {
    color: var(--text-secondary, #b8bccc);
    margin: 0;
}
.ds-quote-summary {
    background: rgba(0, 173, 239, 0.08);
    border: 1px solid rgba(0, 173, 239, 0.25);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem 0.9rem;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-primary, #f0f0f0);
}
.ds-quote-summary [data-line="summary-grand"] {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--deep-sky-blue, #00adef);
}
