/* Single Trader Page Styles */
.trader-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.trader-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.trader-avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
}

.trader-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trader-info h1.store-name {
    margin: 0 0 1rem;
    font-size: 2.5rem;
}

.trader-contact {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.trader-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trader-features {
    margin-top: 2rem;
}

.features-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-row {
    display: flex;
    gap: 2rem;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
}

/* Alternate image position for row layout on desktop */
.features-layout-rows .feature-row.image-right {
    flex-direction: row-reverse;
}

/* Align content of the text column to the top in rows layout */
.features-layout-rows .feature-row {
    align-items: flex-start;
}

.features-layout-rows .feature-image {
    flex: 0 0 25%;
    max-width: 25%;
    width: 100%;
    height: auto;
}

.features-layout-rows .feature-content {
    flex: 0 0 75%;
    max-width: 75%;
}

.feature-image {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

/* Columns layout for features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.trader-description {
    /* margin-top: 2rem; */
}

/* Responsive Design */
@media (max-width: 768px) {
    .trader-header {
        flex-direction: column;
        text-align: center;
    }

    .feature-row {
        flex-direction: column;
        text-align: center;
    }

    .feature-image {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }

    .features-layout-rows .feature-image {
        flex: 0 0 100%;
        max-width: 300px;
    }

    .features-layout-rows .feature-content {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Header customization for single trader pages */
.single-trader #header-logo-image {
    /* On trader pages hide any default background image on the header image wrapper */
    background: none !important;
}

.single-trader #header-logo-image img {
    /* Hide the default header logo image on trader pages */
    display: none;
}

.single-trader #header-logo-image::before {
    /* Swap in a trader-specific header image via a pseudo-element */
    /* Replace this URL with your trader-specific header image */
    content: url('bally-Market-sign-200px.png');
    display: block;
    max-width: 100%;
    height: auto;
}

.single-trader #header-logo-image,
.single-trader #site-navigation {
    background-color: #ffffff;
}

.single-trader #site-navigation a {
    color: #222222;
}

.single-trader #site-navigation a:hover,
.single-trader #site-navigation a:focus {
    color: #007bff;
}
