/* ==========================================================================
   EOB Marketplace Grid Layout Framework
   ========================================================================== */

.eob-breadcrumb-wrapper {
    max-width: 1400px;
    margin: 1px auto 0 auto;
    padding: 50 20px;
}

.eob-breadcrumb-wrapper .breadcrumb {
    font-size: 0.85rem;
    color: #65696c;
    display: block;
}

.eob-breadcrumb-wrapper .breadcrumb a {
    color: #65696c;
    text-decoration: underline;
}

.eob-wm-main-grid {
    display: grid;
    /* Bounded center column track prevents awkward white-space canyons */
    grid-template-columns: 330px minmax(500px, 680px) 330px;
    gap: 20px;
    max-width: 1400px;
    margin: 15px auto 30px auto;
    padding: 0 2px;
    align-items: flex-start;
    justify-content: center;
}

/* ==========================================================================
   Column 1: Left Media Presentation Component
   ========================================================================== */

.eob-wm-media-col {
    display: flex;
    gap: 16px;
    width: 100%;
}

.eob-wm-thumb-strip {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.eob-wm-main-stage {
    width: 100%;
}

/* Targets the image directly within its clean structural home */
.eob-wm-main-stage img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

.no-cover-placeholder {
    width: 100%;
    height: 450px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #e2e4e6;
    color: #65696c;
}

/* ==========================================================================
   Column 2: Center Core Typography & Accordions
   ========================================================================== */

.eob-wm-info-col {
    display: flex;
    flex-direction: column;
    width: 100%;
}

a.eob-author-link {
    color: #303438;
    font-size: 0.4rem;
    text-decoration: underline;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 5px;
    display: inline-block;
    width: fit-content;
}

.eob-wm-info-col h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #2e2f32;
    line-height: 1.25;
}

.eob-meta-ratings-row {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: #65696c;
    margin-bottom: 20px;
    align-items: center;
}

.eob-meta-ratings-row .eob-divider {
    color: #ffffff;
}

.eob-details-accordion,
.eob-description-accordion {
    border-top: 1px solid #e2e4e6;
    padding: 15px 0;
    width: 100%;
}

.eob-section-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: #2e2f32;
    margin-bottom: 10px;
}

.eob-features-list {
    padding-left: 20px;
    font-size: 0.6rem;
    line-height: 1.6;
    color: #2e2f32;
    margin: 0;
    list-style-type: disc;
}

/* Line-clamping system tied cleanly to your toggle script */
.eob-description-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #2e2f32;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.eob-description-text.expanded {
    display: block;
    overflow: visible;
}

.eob-toggle-wrapper {
    margin-top: 6px;
}

.eob-toggle-wrapper a {
    color: #0071dc;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   Column 3: Right Sticky Merchant Buy Box
   ========================================================================== */

.eob-wm-buy-box-container {
    position: sticky;
    top: 30px;
    width: 100%;
}

.eob-wm-buy-card {
    border: 1px solid #e2e4e6;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.eob-price-label {
    font-size: 0.85rem;
    color: #65696c;
    font-weight: 500;
    display: block;
}

.eob-main-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2e2f32;
    line-height: 1;
    margin-top: 4px;
}

.eob-promo-banner {
    border: 1px dashed #bdf;
    background: #f4f8fa;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.eob-promo-banner img {
    width: 32px;
    height: auto;
    flex-shrink: 0;
}

.eob-promo-text {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #2e2f32;
}

.eob-promo-text a {
    color: #0071dc;
    text-decoration: underline;
    font-weight: 600;
}

.eob-fulfillment-status {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid #e2e4e6;
    padding-top: 15px;
}

.eob-status-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.88rem;
    color: #2e2f32;
}

.eob-seller-attribution {
    font-size: 0.78rem;
    color: #65696c;
    display: block;
    margin-top: 2px;
}

.eob-origin-country {
    padding-left: 28px;
    font-size: 0.82rem;
    color: #65696c;
    margin-top: -8px;
    display: block;
}

.eob-stock-badge {
    font-weight: 700;
}

.eob-stock-badge.in-stock {
    color: #2a8736;
}

.eob-stock-badge.low-stock {
    color: #b12704;
}

.eob-btn-primary {
    background: #7b2981;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    transition: background 0.15s ease;
}

.eob-btn-primary:hover {
    background: #0056a3;
}

.eob-seller-contact {
    text-align: center;
    font-size: 0.85rem;
    color: #0071dc;
    font-weight: 600;
    text-decoration: underline;
    display: block;
    margin-top: 4px;
}

.eob-protection-footer {
    font-size: 0.78rem;
    text-align: center;
    color: #65696c;
    border-top: 1px solid #e2e4e6;
    padding-top: 12px;
    margin-top: 4px;
}

.eob-out-of-stock-wrap {
    text-align: center;
    padding: 10px 0;
}

.eob-oos-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2e2f32;
    margin-bottom: 8px;
}

.eob-oos-text {
    font-size: 0.85rem;
    color: #65696c;
    margin-bottom: 16px;
}

.eob-btn-dark {
    background: #2e2f32;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    display: block;
    width: 100%;
    cursor: pointer;
}

/* ==========================================================================
   Full Width Breakout Panels (Specs, Offers, Shelves)
   ========================================================================== */

.eob-wm-fullwidth-wrap {
    grid-column: 1 / -1;
    margin-top: 20px;
    border-top: 1px solid #e2e4e6;
    padding-top: 35px;
    width: 100%;
}

.eob-specs-section,
.eob-choices-section,
.related-books-section {
    margin-bottom: 35px;
    display: block;
}

.eob-specs-section h3,
.eob-choices-section h2,
.related-books-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2e2f32;
    margin: 0 0 20px 0;
}

.eob-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 50px;
    font-size: 0.92rem;
}

.eob-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #e2e4e6;
}

.eob-spec-row span:first-child {
    color: #65696c;
    font-weight: 600;
}

.eob-spec-row span:last-child {
    color: #2e2f32;
}

.eob-choices-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin-bottom: 40px;
}

.eob-choices-table tr {
    border-bottom: 1px solid #e2e4e6;
}

.eob-choices-table thead tr {
    border-bottom: 2px solid #e2e4e6;
    text-align: left;
    color: #65696c;
}

.eob-choices-table th {
    padding: 14px 10px;
}

.eob-choices-table td {
    padding: 18px 10px;
    vertical-align: middle;
}

.eob-choices-table td strong {
    color: #2e2f32;
}

.eob-table-subtext {
    font-size: 0.78rem;
    color: #65696c;
    margin-top: 2px;
}

.eob-condition-pill {
    background: #f4f5f7;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    color: #2e2f32;
    display: inline-block;
}

.eob-table-price {
    font-weight: 700;
    color: #2e2f32;
    font-size: 1.05rem;
}

.eob-table-btn {
    border: 1px solid #0071dc;
    color: #0071dc;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-block;
}

.shelves-wrapper {
    width: 100%;
    display: block;
}

/* ==========================================================================
   Responsive Adaptability Engine (Mobile Optimization)
   ========================================================================== */

@media (max-width: 1024px) {
    .eob-wm-main-grid {
        grid-template-columns: 1fr;
    }
    .eob-wm-buy-box-container {
        position: relative;
        top: 0;
    }
    .eob-specs-grid {
        grid-template-columns: 1fr;
    }
}