@import url('/css/variables.css');

/* ============================================================
   Smartmart Coming Soon 製品詳細
   プレフィックス: cs-
   ============================================================ */

/* ─── Page Wrapper ───────────────────────────────────── */
.cs-page {
    padding: 24px 0 80px;
    min-height: 60vh;
}

.cs-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Breadcrumb ────────────────────────────────────── */
.cs-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
    gap: 4px;
}

.cs-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.cs-breadcrumb a:hover {
    color: var(--primary-color);
}

.cs-breadcrumb-sep {
    margin: 0 4px;
    color: var(--text-light);
}

.cs-breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ─── Product Header ─────────────────────────────────── */
.cs-product-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ─── Product Images ─────────────────────────────────── */
.cs-product-images {
    position: relative;
}

.cs-main-image {
    width: 100%;
    height: 480px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
}

.cs-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #FF5722;
    color: #fff;
    padding: 8px 18px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
}

/* ─── Product Info ───────────────────────────────────── */
.cs-product-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.25;
}

.cs-release-date {
    font-size: 1.05rem;
    font-weight: 600;
    color: #FF5722;
    margin-bottom: 24px;
}

.cs-product-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* ─── Notification Box ───────────────────────────────── */
.cs-notify-box {
    background: #eff6ff;
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 28px;
}

.cs-notify-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 8px;
}

.cs-notify-desc {
    font-size: 0.9rem;
    color: #1e40af;
    margin-bottom: 16px;
    line-height: 1.6;
}

.cs-notify-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.cs-notify-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
}

.cs-notify-type input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.cs-notify-form {
    display: flex;
    gap: 10px;
}

.cs-notify-input {
    flex: 1;
    padding: 11px 16px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.2s;
}

.cs-notify-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.cs-notify-btn {
    padding: 11px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.cs-notify-btn:hover {
    background: var(--primary-dark);
}

/* ─── Countdown Timer ────────────────────────────────── */
.cs-countdown {
    background: var(--sm-black);
    color: #fff;
    padding: 28px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 28px;
}

.cs-countdown-label {
    font-size: 1rem;
    opacity: 0.75;
    margin-bottom: 16px;
}

.cs-countdown-display {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.cs-countdown-unit {
    text-align: center;
}

.cs-countdown-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.cs-countdown-text {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 4px;
}

/* ─── Specs Preview ──────────────────────────────────── */
.cs-specs {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.cs-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.cs-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.cs-specs-table th,
.cs-specs-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.cs-specs-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    width: 30%;
}

.cs-specs-table td {
    color: var(--text-secondary);
}

.cs-specs-note {
    margin-top: 16px;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
}

/* ─── News Section ───────────────────────────────────── */
.cs-news {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.cs-news-item {
    padding: 20px 0;
}

.cs-news-item + .cs-news-item {
    border-top: 1px solid var(--border-light);
}

.cs-news-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.cs-news-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cs-news-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── Expert Prediction ──────────────────────────────── */
.cs-expert-box {
    background: #fffbeb;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-top: 14px;
}

.cs-expert-label {
    font-weight: 700;
    color: #b45309;
    font-size: 0.875rem;
}

.cs-expert-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.65;
    margin-top: 4px;
}

/* ─── Toast (通知フィードバック) ──────────────────────── */
.cs-toast {
    position: fixed;
    bottom: 28px;
    right: 24px;
    background: var(--success-color);
    color: #fff;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 9999;
}

.cs-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
    .cs-product-header {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }

    .cs-main-image {
        height: 280px;
    }

    .cs-product-title {
        font-size: 1.5rem;
    }

    .cs-notify-types {
        grid-template-columns: 1fr;
    }

    .cs-notify-form {
        flex-direction: column;
    }

    .cs-countdown-display {
        gap: 14px;
    }

    .cs-countdown-value {
        font-size: 2.2rem;
    }

    .cs-specs {
        padding: 24px;
    }

    .cs-news {
        padding: 24px;
    }
}
