.product-card[hidden] {
    display: none;
}

/* ============================================================================
   SPURA HUB v3 — Tunea public storefront (catalog, customize, product)
   ============================================================================ */

.tech-signature-canvas-wrap {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--tech-border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    touch-action: none;
}

.showroom-product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.showroom-product-gallery {
    position: sticky;
    top: 1rem;
}

.showroom-product-details {
    padding-top: 1rem;
}

.tunea-hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-900) 100%);
    color: var(--text-inverse);
    text-align: center;
}

.tunea-hero h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 800;
}

.tunea-hero p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.25rem;
    opacity: 0.9;
}

.tunea-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.tunea-btn-primary {
    background: var(--bg-surface);
    color: var(--brand-600);
}

.tunea-btn-primary:hover {
    background: var(--brand-50);
    transform: translateY(-2px);
}

.tunea-btn-outline {
    border: 2px solid var(--text-inverse);
    color: var(--text-inverse);
}

.tunea-btn-outline:hover {
    background: color-mix(in srgb, var(--text-inverse) 10%, transparent);
}

.tunea-actions-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tunea-catalog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tunea-catalog .back-link,
.product-detail .back-link,
.customize-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--brand-600);
    font-weight: 500;
    text-decoration: none;
}

.tunea-catalog .back-link:hover,
.product-detail .back-link:hover,
.customize-page .back-link:hover {
    color: var(--brand-700);
}

.tunea-catalog .products-grid,
.featured-section .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tunea-catalog .product-card,
.featured-section .product-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.tunea-catalog .product-card:hover,
.featured-section .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tunea-catalog .product-card-img,
.featured-section .product-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--ink-100);
}

.tunea-catalog .product-card-body,
.featured-section .product-card-body {
    padding: 1rem;
}

.tunea-catalog .product-card-name,
.featured-section .product-card-name {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.tunea-catalog .product-card-sku {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.tunea-catalog .product-card-price,
.featured-section .product-card-price {
    margin-bottom: 0.75rem;
    color: var(--brand-600);
    font-size: 1.125rem;
    font-weight: 700;
}

.tunea-catalog .product-card-btn,
.featured-section .product-card-btn {
    display: block;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--brand-600);
    color: var(--text-inverse);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background var(--transition-fast);
}

.tunea-catalog .product-card-btn:hover,
.featured-section .product-card-btn:hover {
    background: var(--brand-700);
}

.product-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.gallery {
    position: sticky;
    top: 2rem;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
}

.gallery-placeholder i {
    font-size: 4rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--brand-600);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tunea-designer {
    --tunea-canvas-bg: var(--brand-100);
    --tunea-canvas-border: var(--border-color);
    --tunea-chip-bg: var(--bg-surface);
    --tunea-chip-border: var(--border-color);
    --tunea-chip-selected: var(--brand-600);
}

.customize-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.customize-page-lead {
    max-width: 42rem;
    margin: -0.5rem 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.customize-page-title {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.customize-page-title-icon {
    color: var(--brand-600);
}

.customize-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.customize-page .form-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.customize-page .form-section h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.125rem;
}

.customize-page .form-group {
    margin-bottom: 1.25rem;
}

.customize-page .form-group label {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--ink-600);
    font-weight: 500;
}

.customize-page .form-group label .required {
    color: var(--danger-500);
}

.customize-page .form-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.customize-page .form-input:focus {
    border-color: var(--brand-600);
}

.customize-page select.form-input {
    cursor: pointer;
}

.customize-page textarea.form-input {
    min-height: 80px;
    resize: vertical;
}

.tunea-designer-panel .tunea-panel-hint {
    margin: -0.25rem 0 0.75rem;
}

.tunea-asset-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.625rem;
}

.tunea-asset-picker--decorations {
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
}

.tunea-asset-picker--wide {
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
}

.tunea-bg-custom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.tunea-subsection-title {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
}

.tunea-control-label--inline {
    margin-top: 0.75rem;
}

.tunea-color-preset-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tunea-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.5rem;
    border: 2px solid var(--tunea-chip-border);
    border-radius: var(--radius-sm);
    background: var(--tunea-chip-bg);
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
}

.tunea-color-chip-swatch {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.tunea-color-chip.is-selected {
    border-color: var(--tunea-chip-selected);
}

.tunea-instruction-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tunea-instruction-card {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
}

.tunea-instruction-card img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
}

.tunea-instruction-card__body p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.tunea-instruction-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tunea-picker-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0.75rem;
    border: 1px dashed var(--tunea-chip-border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.tunea-asset-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem;
    border: 2px solid var(--tunea-chip-border);
    border-radius: var(--radius-sm);
    background: var(--tunea-chip-bg);
    color: var(--text-secondary);
    font-size: 0.6875rem;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tunea-asset-chip img {
    width: 100%;
    max-height: 4.5rem;
    object-fit: contain;
}

.tunea-asset-chip.is-selected,
.tunea-asset-chip:hover {
    border-color: var(--tunea-chip-selected);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--tunea-chip-selected) 35%, transparent);
}

.tunea-advanced-details {
    margin-top: 1rem;
}

.tunea-advanced-details summary {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.design-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.tunea-control-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.tunea-color-input {
    min-height: 2.5rem;
    padding: 0.25rem;
}

.canvas-wrap {
    padding: 0.75rem;
    border: 1px solid var(--tunea-canvas-border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
}

.canvas-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.canvas-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.canvas-upload-label {
    position: relative;
    margin: 0;
}

.canvas-shell {
    overflow: auto;
    border: 1px solid var(--tunea-canvas-border);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--tunea-canvas-bg) 40%, var(--bg-secondary));
}

.canvas-shell .canvas-container {
    margin: 0 auto;
}

.customize-page .color-swatch {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-color);
    cursor: pointer;
}

.customize-page .color-swatch.selected {
    border-color: var(--brand-600);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-600) 30%, transparent);
}

.customize-page .option-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.customize-page .option-card {
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
}

.customize-page .option-card.selected {
    border-color: var(--brand-600);
    background: var(--brand-50);
}

.customize-page .summary-sidebar {
    position: sticky;
    top: 1rem;
}

.customize-page .summary-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1rem 0;
}

.customize-page .summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.customize-page .summary-total .amount {
    color: var(--brand-600);
}

.customize-page .submit-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--brand-600);
    color: var(--text-inverse);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.customize-page .submit-btn:hover {
    background: var(--brand-700);
}

.how-it-works {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.75rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.step-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-full);
    background: var(--brand-600);
    color: var(--text-inverse);
    font-weight: 700;
}

.featured-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.featured-section h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.cta-section {
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cta-section p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.empty-products {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.product-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink-100);
}

.product-card-placeholder-icon {
    font-size: 2rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .showroom-product-detail {
        grid-template-columns: 1fr;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .customize-layout {
        grid-template-columns: 1fr;
    }

    .tunea-bg-custom-grid {
        grid-template-columns: 1fr;
    }

    .tunea-instruction-card {
        grid-template-columns: 1fr;
    }
}

.confirm-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.confirm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-full);
    background: var(--success-500);
}

.confirm-icon i {
    color: var(--text-inverse);
    font-size: 2.5rem;
}

.confirm-page h1 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.75rem;
}

.confirm-subtitle {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.confirm-card {
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.confirm-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.confirm-card-header h3 {
    margin: 0;
    color: var(--ink-600);
    font-size: 1rem;
}

.confirm-card-body {
    padding: 1.5rem;
}

.confirm-page .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-secondary);
    font-size: 0.875rem;
}

.confirm-page .detail-row:last-child {
    border-bottom: none;
}

.confirm-page .detail-row--spaced {
    margin-top: 1rem;
}

.confirm-status-pill {
    display: inline-flex;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-md);
    background: var(--warning-50);
    color: var(--warning-600);
    font-size: 0.75rem;
}

.confirm-page .step {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.confirm-page .step p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.confirm-page .btn-outline {
    border: 2px solid var(--border-color);
    color: var(--ink-600);
}

.confirm-page .btn-outline:hover {
    border-color: var(--brand-600);
    color: var(--brand-600);
}

.tx-import-confirm-form {
    margin-top: 1.5rem;
}
