/* Premium Book Subpage Styling - Amazon Inspired */

:root {
    --primary-blue: #007BFF;
    --hover-blue: #0056b3;
    --success-green: #28a745;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #ddd;
    --bg-light: #fdfdfd;
}

body {
    background-color: var(--bg-light);
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

.content {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}

.TitleContent {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 1. Image Gallery Column */
.ImageGalleryColumn {
    flex: 0 0 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#mainBookImage {
    width: 100%;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    object-fit: contain;
    background: white;
    padding: 15px;
    border: 1px solid #eee;
}

.image-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.thumb-item {
    width: 70px;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.thumb-item:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.thumb-item.active {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* 2. Main Info Column */
.TextInfoSubpageColumn {
    flex: 1;
    min-width: 300px;
}

.TextInfoSubpageColumn h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #111;
}

.author-link {
    color: #007185;
    text-decoration: none;
    font-weight: 500;
}

.author-link:hover {
    text-decoration: underline;
    color: #c45500;
}

.series-info {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.status-badges {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    background: #f0f2f2;
    border: 1px solid var(--border-color);
}

.condition-badge {
    background: #fff8e1;
    color: #856404;
    border-color: #ffeeba;
}

.stock-badge {
    background: #e6fffa;
    color: #234e52;
    border-color: #b2f5ea;
}

.DescriptionTextBook {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-top: 25px;
    white-space: pre-line;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* 3. Buy Box Column */
.InformationenSpalte {
    flex: 0 0 300px;
    position: sticky;
    top: 100px;
}

.buy-box-container {
    background: white;
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.price-tag {
    font-size: 1.8rem;
    font-weight: 700;
    color: #B12704;
    margin-bottom: 20px;
}

#addToCartButton {
    width: 100%;
    padding: 15px;
    background-color: #FFD814;
    border-color: #FCD200;
    border-style: solid;
    border-width: 1px;
    border-radius: 20px;
    color: #0F1111;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

#addToCartButton:hover {
    background-color: #F7CA00;
}

.spec-list {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.spec-label {
    color: var(--text-light);
}

.spec-value {
    font-weight: 600;
}

/* Navbar Fix for Subpages */
header {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1100px) {
    .TitleContent {
        flex-direction: column;
        align-items: center;
    }

    .ImageGalleryColumn, .TextInfoSubpageColumn, .InformationenSpalte {
        flex: 1 1 100%;
        max-width: 100%;
        position: relative;
        top: 0;
    }

    .InformationenSpalte {
        width: 100%;
        box-sizing: border-box;
        margin-top: 30px;
    }
}

.hidden {
    display: none !important;
}

#notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-green);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
}
