.detail-page-container {
    width: 100%; 
    max-width: none; 
    margin: 55px 0 0 0; 
    padding: 75px 20px 100px 20px; 
    background-color: white; 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.book-details-header {
    display: flex;
    gap: 60px; 
    padding-bottom: 30px;
    border-bottom: 1px solid #e0d9d4; 
    padding-left: 5%;
    padding-right: 5%;
    
    align-items: center; 
    justify-content: flex-start;
}

.book-details-header img {
    width: 300px; 
    height: 450px; 
    object-fit: cover;
    border: 1px solid #e0d9d4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.details-info {
    flex-grow: 1;
    margin-left: 0; 
    margin-right: 0;
    
    display: block; 
    height: auto;
}

.details-info h4 {
    color: #a1885f; 
    margin: 0 0 20px 0; 
    font-weight: normal;
    font-size: 1.8rem; 
}

.title-and-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    width: 100%;
    margin-bottom: 20px; 
}

.details-text-group {
    flex-shrink: 0; 
    flex-grow: 1; 
}

.details-text-group h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #332b21;
    line-height: 1.1; 
    max-width: 450px; 
}

.details-text-group p.edition {
    font-size: 1.8rem; 
    color: #5d4a3c;
    margin-top: 20px; 
    font-weight: lighter;
    max-width: 450px; 
}

.purchase-options-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    gap: 10px;
    flex-shrink: 0; 
    margin-left: auto; 
}

.purchase-options-inline .price-inline {
    font-size: 2.2rem; 
    font-weight: bold;
    color: #332b21; 
    margin-bottom: 10px; 
    white-space: nowrap; 
}

.purchase-options-inline button {
    padding: 15px 20px;
    font-size: 1.2rem; 
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    width: 260px; 
    text-align: center;
}

.purchase-options-inline .buy-btn {
    background-color: #4a3b30; 
    color: white;
}

.purchase-options-inline .buy-btn:hover {
    background-color: #332b21;
}

.purchase-options-inline .cart-btn {
    background-color: #4a3b30; 
    color: white;
}

.purchase-options-inline .cart-btn:hover {
    background-color: #332b21;
}

.fav-link-top {
    font-size: 1.5rem; 
    color: #5d4a3c;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 20px;
}

.fav-link-top i {
    font-size: 1.5rem; 
    color: #a1885f; 
}

.fav-link-top:hover {
    color: #332b21;
}

.rating-and-fav-row {
    display: flex;
    align-items: center;
    gap: 30px; 
    margin-top: 0; 
}

.rating-and-fav-row .rating {
    font-size: 1.8rem; 
    color: #a1885f; 
    margin: 0; 
}

.sections-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 40px;
    padding-top: 30px;
    padding-left: 5%;
    padding-right: 5%;
}

.sections-grid h2 {
    color: #4a3b30;
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #a1885f; 
    margin-top: 0;
}

.section-comments {
    grid-column: 1 / span 2; 
    padding-top: 30px;
    border-top: 1px solid #e0d9d4;
    margin-top: 40px;
    padding-left: 5%;
    padding-right: 5%;
}

.comment-input-area {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.comment-input-area input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: none; 
    border-bottom: 1px solid #ccc; 
    border-radius: 0; 
    font-size: 1rem;
    outline: none;
}

.comment-input-area button {
    background-color: #4a3b30;
    color: white;
    padding: 10px 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-input-area button:hover {
    background-color: #332b21;
}

.comment-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: #fdf8f4;
    border: 1px solid #e0d9d4;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    word-wrap: break-word; 
    overflow-wrap: break-word;
}

.comment-card .user-info {
    min-width: 0; 
    flex-grow: 1;
}

.comment-card .user-icon {
    font-size: 1.5rem;
    color: #4a3b30;
}

.comment-card .user-info strong {
    color: #332b21;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}