/**
 * Azarias Books - Book Detail Styles
 */

 :root {
    --az-navy: #0a192f;
    --az-bronze: #a67c00;
    --az-cream: #f9f7f2;
}

.detail-wrapper {
    /* 140px and 80px converted to 12px baseline */
    padding-top: 11.6667rem; 
    padding-bottom: 6.6667rem;
    background-color: #fcfcfc;
    min-height: 100vh;
}

/* --- FIX: ANCHOR OFFSET FOR ANY JUMP LINKS --- */
/* Ensures jump-to-section links clear the sticky header perfectly. */
.detail-wrapper [id] {
    scroll-margin-top: 10rem;
}

/* BREADCRUMB */
.az-breadcrumb {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 2rem;
    text-transform: uppercase;
    /* 1px converted */
    letter-spacing: 0.0833rem;
}
.az-breadcrumb a {
    color: var(--az-navy);
    text-decoration: none;
    font-weight: 600;
}
.az-breadcrumb a:hover {
    color: var(--az-bronze);
    text-decoration: underline;
}

/* BOOK COVER */
.detail-cover-wrapper {
    background: white;
    /* 20px converted */
    padding: 1.6667rem;
    border: 1px solid #eee; /* Kept strict px */
    border-radius: 8px; /* Kept strict px */
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); /* Kept strict px */
    text-align: center;
}
.detail-cover-img {
    max-width: 100%;
    height: auto;
    /* 500px converted */
    max-height: 41.6667rem;
    object-fit: contain;
}

/* BOOK INFO */
.detail-title {
    font-family: 'Merriweather', serif;
    color: var(--az-navy);
    font-weight: 900;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.detail-author {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

/* METADATA TABLE */
.meta-table {
    width: 100%;
    margin-bottom: 2rem;
}
.meta-table td {
    /* 8px converted */
    padding: 0.6667rem 0;
    vertical-align: top;
    border-bottom: 1px solid #eee; /* Kept strict px */
}
.meta-label {
    font-weight: 700;
    color: var(--az-navy);
    /* 120px converted */
    width: 10rem;
    font-size: 0.9rem;
}
.meta-value {
    color: #555;
    font-size: 0.95rem;
}

/* MERCHANT PRICING STYLES */
.merchant-summary-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef; /* Kept strict px */
    border-radius: 8px; /* Kept strict px */
    padding: 1.25rem;
    margin-bottom: 2rem;
}
.merchant-icon {
    /* 20px converted */
    width: 1.6667rem;
    height: 1.6667rem;
    border-radius: 3px; /* Kept strict px */
    /* 8px converted */
    margin-right: 0.6667rem;
    vertical-align: middle;
}
.price-badge {
    font-weight: 800;
    color: #2c3e50;
    font-size: 1.1rem;
}
.merchant-list-item {
    font-size: 0.9rem;
    border-left: none;
    border-right: none;
}
.shipping-note {
    font-size: 0.75rem;
    color: #888;
}

/* VALUATION BOX */
.valuation-box {
    background-color: var(--az-navy);
    color: white;
    padding: 2rem;
    border-radius: 8px; /* Kept strict px */
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}
.val-label {
    color: var(--az-bronze);
    font-size: 0.8rem;
    text-transform: uppercase;
    /* 1px converted */
    letter-spacing: 0.0833rem;
    font-weight: 700;
    /* 5px converted */
    margin-bottom: 0.4167rem;
}
.val-price {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    line-height: 1;
}
.val-btn {
    background-color: #8a6500;
    color: white;
    border: none;
    /* 12px 30px converted */
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 4px; /* Kept strict px */
    width: 100%;
    /* 15px converted */
    margin-top: 1.25rem;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.val-btn:hover {
    background-color: #fff;
    color: var(--az-navy);
}

.not-buying-box {
    background-color: #e9ecef;
    padding: 1.5rem;
    border-radius: 8px; /* Kept strict px */
    color: #495057;
    border-left: 4px solid #adb5bd; /* Kept strict px */
}

.read-more-trigger {
    color: var(--az-navy);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    /* 5px converted */
    margin-left: 0.4167rem;
    cursor: pointer;
}
.read-more-trigger:hover {
    text-decoration: underline;
    color: var(--az-bronze);
}

/* --- RESPONSIVE OFFSET ADJUSTMENT --- */
@media (max-width: 991px) {
    .detail-wrapper [id] {
        /* Clear the taller mobile search-row header */
        scroll-margin-top: 15rem; 
    }
}