/* Detail Page Modern Dark & Rich Theme */
.detail-wrapper {
    max-width: 1150px;
    margin: 0 auto 3rem auto;
    padding: 1rem;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: #f8f9fa;
    box-sizing: border-box;
}

.detail-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid #444;
    border-radius: 8px;
}

.back-btn {
    color: #4da8da !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.back-btn:hover {
    color: #80c8f0 !important;
}

.detail-id-label {
    font-size: 0.85rem;
    color: #adb5bd;
}

.detail-error-card {
    background: rgba(30, 30, 30, 0.92);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #f8f9fa;
}

.detail-card-main {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid #444;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.detail-header-block {
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.store-badge {
    background: #e63946;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.maker-badge {
    background: #2b5876;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.type-badge {
    background: #3d3d3d;
    color: #ddd;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.warranty-badge {
    background: #198754;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.detail-bike-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    background: none !important;
    border: none !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.8rem;
    align-items: start;
}

/* Gallery Column */
.detail-gallery-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 0;
}

.main-photo-frame {
    position: relative;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-nav:hover {
    background: rgba(255, 51, 102, 0.85);
}

.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.gallery-counter {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
}

.photo-caption {
    min-height: 1.5rem;
    font-size: 0.9rem;
    color: #ffd166;
    background: #222;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    border-left: 3px solid #f39c12;
}

.photo-caption:empty {
    display: none;
}

.thumb-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 6px;
    max-height: 245px;
    overflow-y: auto;
    padding: 4px;
    background: #141414;
    border-radius: 8px;
    border: 1px solid #2b2b2b;
}

.thumb-item {
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid transparent;
    aspect-ratio: 4 / 3;
    background: #000;
    opacity: 0.7;
    transition: all 0.15s ease;
}

.thumb-item:hover {
    opacity: 1;
}

.thumb-item.active {
    border-color: #ff3366;
    opacity: 1;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-section {
    margin-top: 0.8rem;
    background: #222;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.video-section h3 {
    margin: 0 0 0.6rem 0 !important;
    font-size: 1rem !important;
    color: #fff !important;
}

/* Right Info Column */
.detail-info-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.detail-price-card {
    background: linear-gradient(145deg, #252525, #1c1c1c);
    border: 1px solid #3a3a3a;
    border-left: 5px solid #ff3366;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
}

.price-row-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.price-label-main {
    font-size: 1rem;
    font-weight: 700;
    color: #e0e0e0;
}

.price-label-main small {
    font-size: 0.8rem;
    color: #999;
}

.price-val-main {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ff3366;
    line-height: 1.1;
}

.price-val-main .yen {
    font-size: 1.2rem;
    font-weight: 700;
    margin-left: 4px;
    color: #ff3366;
}

.price-row-base {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px dashed #3a3a3a;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #adb5bd;
}

.price-row-base strong {
    color: #fff;
}

/* 3 Key Specs */
.detail-key-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
}

.key-spec-box {
    background: #232323;
    border: 1px solid #363636;
    border-radius: 8px;
    padding: 0.8rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.key-spec-box i {
    color: #4da8da;
    font-size: 1.2rem;
}

.ks-label {
    font-size: 0.75rem;
    color: #999;
}

.ks-val {
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}

/* CTA Buttons */
.detail-cta-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.inquire-btn {
    background: linear-gradient(135deg, #ff3366 0%, #e63946 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 51, 102, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    box-sizing: border-box;
}

.inquire-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 51, 102, 0.55);
}

.inquire-btn .btn-subtext {
    font-size: 0.75rem;
    font-weight: 400;
    color: #ffe3ec;
}

.tel-btn {
    background: #252525;
    color: #ffffff !important;
    border: 1px solid #4da8da;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.tel-btn:hover {
    background: #2b5876;
}

.goobike-link-wrap {
    margin-top: -0.4rem;
    text-align: right;
}

.goobike-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 1rem;
    background: #1e1e1e;
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    color: #b0b8c1 !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.goobike-link-btn i {
    font-size: 0.82rem;
    color: #88929b;
    transition: color 0.2s ease;
}

.goobike-link-btn:hover {
    background: #2a2a2a;
    border-color: #666;
    color: #ffffff !important;
}

.goobike-link-btn:hover i {
    color: #ff3366;
}

/* Options Box */
.detail-options-box,
.detail-spec-box,
.detail-comment-section {
    background: #222;
    border: 1px solid #363636;
    border-radius: 10px;
    padding: 1.1rem;
}

.detail-options-box h3,
.detail-spec-box h3,
.detail-comment-section h3 {
    margin: 0 0 0.8rem 0 !important;
    padding: 0 0 0.5rem 0 !important;
    font-size: 1.05rem !important;
    color: #fff !important;
    border-bottom: 1px solid #3a3a3a !important;
    background: none !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-options-box h3 i,
.detail-spec-box h3 i,
.detail-comment-section h3 i {
    color: #4da8da;
}

.option-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.opt-tag {
    background: #2d3748;
    color: #e2e8f0;
    border: 1px solid #4a5568;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.opt-tag i {
    color: #4da8da;
    font-size: 0.75rem;
}

/* Spec Table */
.detail-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.detail-spec-table th,
.detail-spec-table td {
    border: 1px solid #383838;
    padding: 0.55rem 0.7rem;
    text-align: left;
}

.detail-spec-table th {
    background: #2c2c2c;
    color: #adb5bd;
    font-weight: 600;
    width: 22%;
    white-space: nowrap;
}

.detail-spec-table td {
    background: #1e1e1e;
    color: #f8f9fa;
    width: 28%;
}

/* Comment Section */
.detail-comment-section {
    margin-top: 1.5rem;
}

.comment-headline {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffd166;
    margin-bottom: 0.6rem;
}

.comment-body {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #e2e8f0;
}

.detail-bottom-cta {
    margin-top: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media screen and (max-width: 820px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .detail-card-main {
        padding: 1rem;
    }
    .detail-bike-title {
        font-size: 1.2rem !important;
    }
    .price-val-main {
        font-size: 2rem;
    }
    .detail-spec-table th,
    .detail-spec-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .detail-spec-table tr {
        display: block;
        margin-bottom: 0.4rem;
    }
}
