/* ===== Skin Consultation Quiz ===== */

.sc-quiz-wrap {
    max-width: 900px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.sc-hidden { display: none !important; }

/* ---- Steps ---- */
.sc-step {
    animation: sc-fadeIn 0.3s ease;
}

@keyframes sc-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sc-step-header {
    text-align: center;
    margin-bottom: 36px;
}

.sc-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #000;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.sc-step-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px;
}

.sc-step-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* ---- Options Grid ---- */
.sc-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.sc-option {
    cursor: pointer;
    border: 2px solid #ddd;
    transition: border-color 0.15s, background 0.15s;
    background: #fff;
    position: relative;
    display: block;
}

.sc-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sc-option-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    gap: 8px;
}

.sc-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #000;
}

.sc-option-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sc-option-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #000;
}

.sc-option-desc {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.4;
}

.sc-option:hover {
    border-color: #000;
}

.sc-option.sc-selected {
    border-color: #000;
    background: #000;
}

.sc-option.sc-selected .sc-option-icon {
    color: #fff;
}

.sc-option.sc-selected .sc-option-label {
    color: #fff;
}

.sc-option.sc-selected .sc-option-desc {
    color: #bbb;
}

/* ---- Max Notice ---- */
.sc-max-notice {
    text-align: center;
    background: #f5f5f5;
    border: 1px solid #ccc;
    padding: 10px 16px;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ---- Buttons ---- */
.sc-step-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.sc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 36px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid #000;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sc-btn-next {
    background: #000;
    color: #fff;
}

.sc-btn-next:hover:not(:disabled) {
    background: #333;
    border-color: #333;
}

.sc-btn-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.sc-btn-back {
    background: #fff;
    color: #000;
    border-color: #000;
}

.sc-btn-back:hover {
    background: #000;
    color: #fff;
}

.sc-btn-restart {
    background: #fff;
    color: #000;
    border-color: #000;
}

.sc-btn-restart:hover {
    background: #000;
    color: #fff;
}

/* ---- Loading ---- */
.sc-loading {
    text-align: center;
    padding: 60px 0;
    color: #666;
}

.sc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #000;
    animation: sc-spin 0.7s linear infinite;
    margin: 0 auto 20px;
}

@keyframes sc-spin { to { transform: rotate(360deg); } }

/* ---- Error ---- */
.sc-error {
    text-align: center;
    padding: 48px 24px;
    color: #333;
}

/* ---- Results ---- */
.sc-results-header {
    text-align: center;
    margin-bottom: 40px;
}

.sc-results-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 10px;
}

.sc-results-subtitle {
    color: #666;
    font-size: 0.95rem;
}

.sc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.sc-no-products {
    grid-column: 1/-1;
    text-align: center;
    color: #666;
    padding: 40px;
}

/* Match WooCommerce product card style */
.sc-product-card {
    background: #fff;
    position: relative;
    transition: box-shadow 0.25s ease;
    padding: 12px;
}

.sc-product-card:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.sc-product-image-link {
    display: block;
    overflow: hidden;
}

.sc-product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #fff;
    transition: transform 0.3s ease;
}

.sc-product-card:hover .sc-product-image {
    transform: scale(1.03);
}

.sc-product-info {
    padding: 14px 0 0;
}

.sc-product-category {
    font-size: 0.72rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 4px;
    display: block;
}

.sc-product-name {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #000;
}

.sc-product-name a {
    color: #000;
    text-decoration: none;
}

.sc-product-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.sc-btn-cart {
    display: inline-block;
    background: transparent;
    color: #333 !important;
    text-align: center;
    font-size: 0.8rem;
    padding: 6px 14px;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 1px solid #ccc;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.5;
}

.sc-btn-cart:hover {
    background: #333;
    border-color: #333;
    color: #fff !important;
}

.sc-btn-cart.sc-adding {
    opacity: 0.6;
    cursor: wait;
}

.sc-btn-cart.sc-added {
    background: #333;
    border-color: #333;
    color: #fff !important;
}

.sc-results-actions {
    text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .sc-options-grid { grid-template-columns: 1fr 1fr; }
    .sc-step-title { font-size: 1.3rem; }
    .sc-products-grid { grid-template-columns: 1fr; }
    .sc-btn { padding: 12px 24px; font-size: 0.85rem; }
}
