/* styles/pages/seller.css */

.seller-page {
    min-height: 100vh;
    padding: 150px 40px 100px;
    background: #3b3b3b;
}

.seller {
    width: 70%;
    max-width: 1400px;
    min-height: 70vh;
    height: auto;
    margin: 0 auto;
    padding: 50px;
    display: block;
    background: #292929;
}

/* Seller Header */

.seller-header-title {
    margin-bottom: 20px;
}

.seller-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-bottom: 35px;
    border-bottom: 1px solid #a226ff;
}

.seller-avatar {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.seller-identity {
    display: flex;
    flex-direction: column;
}

.seller-identity h2 {
    margin: 0;
    color: #fff;
    font-size: 32px;
    font-weight: 300;
}

.seller-username {
    color: #a226ff;
    font-size: 16px;
}

.seller-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #aaa;
    font-size: 14px;
}

.seller-meta .with-separator::before {
    content: "•";
    margin-right: 8px;
    color: var(--text-secondary);
}

#seller-user-page-link {
    color: #a226ff;
    text-decoration: underline;
}

#seller-user-page-link:hover {
    opacity: 0.5;
}

/* Seller Inhalt */

.seller-content {
    padding: 40px 0;
}

.seller-about,
.seller-business,
.seller-support,
.seller-company,
.seller-products-content {
    height: auto;
    display: block;
}

.seller-about h2,
.seller-business h2,
.seller-support h2,
.seller-company h2,
.seller-products-content h2 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 24px;
    font-weight: 300;
}

/* Über Verkäufer */

.seller-about {
    margin-bottom: 40px;
}

.seller-about p {
    margin: 0;
    max-width: 900px;
    color: #ddd;
    font-size: 15px;
    line-height: 1.7;
}

/* Verkäuferinformationen */

.seller-business-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #ddd;
    font-size: 14px;
}

.seller-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.seller-info-label {
    font-weight: 600;
}

.seller-info-label::after {
    content: "•";
    margin-left: 8px;
    color: var(--text-secondary);
}

/* Support */

.seller-support {
    margin-top: 35px;
    padding-top: 35px;
    border-top: 1px solid #4a4a4a;
}

.seller-support-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #ddd;
    font-size: 14px;
}

/* Unternehmen */

.seller-company {
    margin-top: 35px;
    padding-top: 35px;
    border-top: 1px solid #4a4a4a;
}

.seller-company-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.seller-company-logo {
    width: auto;
    height: 45px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: contain;
}

.seller-company-identity {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seller-company-identity h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 400;
}

.seller-company-identity span {
    color: #aaa;
    font-size: 14px;
}

.seller-company-info {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #ddd;
    font-size: 14px;
}

/* Produkte */

.seller-products-content {
    padding-top: 35px;
    border-top: 1px solid #a226ff;
}

.seller-products-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 80px) / 5);
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-violet) transparent;
}

.seller-products-list::-webkit-scrollbar {
    height: 4px;
}

.seller-products-list::-webkit-scrollbar-track {
    background: transparent;
}

.seller-products-list::-webkit-scrollbar-thumb {
    background: var(--accent-violet);
    border-radius: 2px;
}

/* Produkt */

.seller-product {
    min-width: 0;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #333;
    border-radius: 8px;
}

.seller-product-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
    object-fit: cover;
}

.seller-product-info {
    min-width: 0;
    flex: 1;
}

.seller-product-title {
    display: block;
    margin-bottom: 8px;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-product-button {
    width: 100%;
    padding: 5px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    background: #a226ff;
    color: #fff;
    font-size: 11px;
    text-decoration: none;
    cursor: pointer;
}

.seller-product-button:hover {
    opacity: 0.5;
}

/* Hidden */

.seller-about[hidden],
.seller-business[hidden],
.seller-support[hidden],
.seller-company[hidden],
.seller-products-content[hidden],
.seller [hidden] {
    display: none !important;
}

.seller-info-description {
    align-items: baseline !important;
}

/* Responsive */

@media (max-width: 1000px) {
    .seller {
        width: 90%;
    }

    .seller-products-list {
        grid-auto-columns: calc((100% - 20px) / 2);
    }
}

@media (max-width: 700px) {
    .seller-page {
        padding: 120px 15px 70px;
    }

    .seller {
        width: 100%;
        padding: 30px 20px;
    }

    .seller-header {
        gap: 20px;
    }

    .seller-avatar {
        width: 90px;
        height: 90px;
    }

    .seller-identity h2 {
        font-size: 26px;
    }

    .seller-meta {
        gap: 10px;
    }

    .seller-company-header {
        align-items: flex-start;
    }

    .seller-products-list {
        grid-auto-columns: 100%;
    }
}