﻿.breadcrumb-bar {
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: 0.75rem 2rem;
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #999;
}

    .breadcrumb a {
        color: var(--teal);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

.detail-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}

/* ---- Left: content ---- */
.detail-category {
    display: inline-block;
    background: var(--lightblue);
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 0.875rem;
}

.detail-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 0.875rem;
}

.detail-short-desc {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.65;
    font-style: italic;
    border-left: 3px solid var(--rule);
    padding-left: 1rem;
    margin-bottom: 1.75rem;
}

.product-image-wrap {
/*    max-width: 240px;*/
    margin: 0 auto 0 auto;
    margin-bottom: 1.75rem;
    border-radius: 6px;
    overflow: hidden;
    background: inherit;
}

.product-image {
    display: block;
    width: 100%;
}

.detail-long-desc {
    font-size: 0.975rem;
    line-height: 1.85;
    color: var(--body);
    white-space: pre-wrap;
}

.detail-empty {
    font-size: 0.9rem;
    color: #bbb;
    font-style: italic;
}

/* ---- Right: purchase panel ---- */
.purchase-panel {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 1.625rem;
    position: sticky;
    top: 80px;
    box-shadow: 0 2px 16px rgba(15,71,97,0.08);
}

.panel-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.panel-price-free {
    font-size: 2rem;
    font-weight: 700;
    color: #CF0000;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.panel-format {
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 1.375rem;
}

.btn-buy-full {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-family: var(--font);
    font-size: 0.975rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s;
    margin-bottom: 0.625rem;
    cursor: pointer;
}

    .btn-buy-full:hover {
        background: var(--teal);
        color: var(--white);
    }

    .btn-buy-full.disabled {
        background: #ddd;
        color: #aaa;
        cursor: default;
    }

.btn-back {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1.5px solid var(--rule);
    color: var(--teal);
    border-radius: 6px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s;
}

    .btn-back:hover {
        border-color: var(--teal);
        background: var(--lightblue);
    }

.panel-note {
    font-size: 0.73rem;
    color: #aaa;
    text-align: center;
    margin-top: 0.875rem;
    line-height: 1.5;
}

@media (max-width: 800px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .purchase-panel {
        position: static;
        order: -1;
    }

    .detail-title {
        font-size: 1.5rem;
    }
}
