/* ── Demo Configurator — Phone Component CSS ──
   Single source of truth. Used by both the mockup and the preview. */

.phone-preview { font-family: 'Inter', sans-serif; position: relative; }
.phone-content { overflow: hidden; }

.phone-comp { border-radius: 12px; position: relative; }
.phone-comp.highlight { box-shadow: 0 0 0 2px #559edd; }

.phone-comp-carousel { border-radius: 10px; }
.phone-comp-carousel .carousel-imgs { display: flex; overflow: hidden; aspect-ratio: 1; position: relative; background: #f3f4f6; border-radius: 10px; }
.phone-comp-carousel .carousel-imgs .carousel-placeholder {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: #9ca3af; gap: 6px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}
.phone-comp-carousel .carousel-imgs .carousel-placeholder i { font-size: 2.5rem; }
.phone-comp-carousel .carousel-label { padding: 8px 12px 0; font-weight: 600; font-size: 0.72rem; color: #9ca3af; }

/* Real image gallery: horizontal scroll with snap */
.phone-comp-carousel .carousel-scroll {
    display: flex; gap: 8px; overflow-x: auto; aspect-ratio: auto;
    background: transparent; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.phone-comp-carousel .carousel-scroll::-webkit-scrollbar { display: none; }
.phone-comp-carousel .carousel-scroll .carousel-img {
    width: 100%; flex-shrink: 0; aspect-ratio: 1; object-fit: cover;
    border-radius: 10px; scroll-snap-align: center; background: #f3f4f6;
}
.phone-comp-carousel .carousel-dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.phone-comp-carousel .carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: #d1d5db; transition: background 0.2s, transform 0.2s; }
.phone-comp-carousel .carousel-dots span.active { background: #64748b; transform: scale(1.25); }
.phone-comp-carousel .carousel-scroll .carousel-img { -webkit-user-drag: none; user-select: none; }

.phone-comp-block-wrap { border-radius: 10px; overflow: hidden; }
.phone-comp-block-wrap .block-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: 0.95rem;
}
.phone-comp-block-wrap .block-header i { transition: transform 0.3s; font-size: 1.3rem; }
.phone-comp-block-wrap.open .block-header i { transform: rotate(180deg); }
.phone-comp-block-wrap .block-body { display: none; overflow: hidden; }
.phone-comp-block-wrap .block-body > .phone-comp { max-width: 100%; box-sizing: border-box; }
.phone-comp-block-wrap.open .block-body { display: block; }

.phone-comp-text .text-title { font-size: 0.85rem; color: #9ca3af; margin-bottom: 2px; }
.phone-comp-text .text-value { font-size: 0.92rem; color: #374151; line-height: 1.5; }

.phone-comp-number .number-label { font-size: 0.85rem; color: #9ca3af; }
.phone-comp-number .number-value { font-size: 1rem; color: #1a1a2e; }

.phone-comp-image { border-radius: 12px; overflow: hidden; }
.phone-comp-image .image-label { font-weight: 600; font-size: 0.82rem; color: #9ca3af; margin-bottom: 8px; }
.phone-comp-image .image-placeholder {
    aspect-ratio: 16/10; background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 10px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: #9ca3af; gap: 4px;
}
.phone-comp-image .image-placeholder i { font-size: 1.5rem; }

.phone-comp-link {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 20px; border-radius: 12px; font-weight: 700; font-size: 0.92rem;
    color: #fff; text-decoration: none;
}
.phone-comp-link:active { opacity: 0.8; }

.phone-comp-file {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 0.82rem; text-decoration: none; color: #fff;
}
.phone-comp-file:active { opacity: 0.8; }

.phone-comp-delimiter { height: 1px; background: #e5e7eb; margin: 4px 0; }

.phone-comp-select .select-label { font-weight: 700; font-size: 0.85rem; color: #9ca3af; margin-bottom: 6px; }
.phone-comp-select .select-box {
    padding: 12px 14px; border: 1.5px solid #e5e7eb; border-radius: 10px;
    font-size: 0.88rem; color: #6b7280; display: flex; justify-content: space-between; align-items: center;
}

.phone-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 20px; text-align: center; color: #9ca3af; gap: 8px;
}
.phone-empty i { font-size: 2.5rem; opacity: 0.4; }
.phone-empty p { font-size: 0.78rem; line-height: 1.5; }
