/* ===========================================
   Seller Profile Page - Specific Styles
   style.css se header/footer CSS aata hai
   =========================================== */

/* Override body font to match Inter from Google Fonts */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
}

/* ---- Seller Header Banner ---- */
.seller-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 40px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.seller-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.seller-logo {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.seller-info {
    flex: 1;
    min-width: 0;
}

.seller-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    line-height: 1.2;
}

.verified-badge {
    background: #ecfdf5;
    color: #059669;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #a7f3d0;
    white-space: nowrap;
}

.seller-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
    margin-top: 16px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.8px;
}

.meta-value {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    margin-top: 4px;
}

.seller-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn-contact {
    background: linear-gradient(135deg, #1d670d, #4caf50);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(29,103,13,0.3);
    letter-spacing: 0.3px;
}

.btn-contact:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ---- Main Content Layout ---- */
.seller-content {
    max-width: 1200px;
    margin: 36px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 28px;
    align-items: start;
}

/* ---- Sections ---- */
.section-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
    margin-bottom: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.about-text {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
}

/* ---- Products Grid ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.product-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f9fafb;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f3f4f6;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 17px;
    font-weight: 700;
    color: #1d670d;
    margin-top: auto;
}

.btn-view {
    display: block;
    text-align: center;
    background: #f0fdf4;
    color: #15803d;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 13px;
    border-top: 1px solid #e5e7eb;
    transition: background 0.2s, color 0.2s;
}

.product-card:hover .btn-view {
    background: #1d670d;
    color: #fff;
}

/* ---- Sidebar Contact ---- */
.seller-sidebar .section-box {
    position: sticky;
    top: 90px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.contact-list svg {
    width: 20px;
    height: 20px;
    fill: #1d670d;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .seller-content {
        grid-template-columns: 1fr;
    }

    .seller-sidebar .section-box {
        position: static;
    }

    .seller-header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .seller-title {
        justify-content: center;
    }

    .seller-meta {
        justify-content: center;
    }

    .seller-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .seller-logo {
        width: 100px;
        height: 100px;
    }

    .seller-title {
        font-size: 22px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}
