/* Premium Custom Stylesheet for Supplier Profile Page */
/* Matches MSME Leap Colors, Typography, and Aesthetics */

:root {
    --primary-blue: #186ad0;
    --primary-dark: #101f46;
    --accent-green: #129954;
    --accent-orange: #f15722;
    --bg-light: #f8f9fa;
    --border-color: #e6e6e8;
    --text-muted: #6c757d;
    --text-dark: #212529;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-premium: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
}

body {
    background-color: #f5f7fa;
    color: var(--text-dark);
    font-family: 'Inter', 'Roboto', 'Open Sans', sans-serif;
}

/* Breadcrumb Styling Override */
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    padding: 100px 0 50px 0;
    background-size: cover !important;
}

.bg-breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(244,248,255,0.9) 0%, rgba(229,237,255,0.85) 100%);
    z-index: 1;
}

.bg-breadcrumb .container {
    position: relative;
    z-index: 2;
}

/* Premium Card Roundings */
.bg-white-rounded {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bg-white-rounded:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

/* 1. Supplier Hero Banner Section */
.supplier-hero-container {
    position: relative;
    margin-top: -80px;
    z-index: 10;
}

.supplier-cover-banner {
    height: 280px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    position: relative;
    background-position: center;
    background-size: cover;
}

.supplier-cover-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(16,31,70,0.1) 0%, rgba(16,31,70,0.7) 100%);
}

.supplier-hero-overlay {
    padding: 24px 30px;
    border-radius: 0 0 16px 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    box-shadow: var(--shadow-premium);
}

.supplier-avatar-wrapper {
    position: relative;
    margin-top: -100px;
    margin-bottom: 15px;
    display: inline-block;
}

.supplier-avatar {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    border: 5px solid #fff;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    object-fit: cover;
    display: block;
}

.supplier-avatar-initials {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    border: 5px solid #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    user-select: none;
    letter-spacing: 1px;
}

.supplier-hero-details h2 {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 2.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.supplier-hero-details .badge-verify {
    font-size: 0.9rem;
    background: linear-gradient(135deg, #129954 0%, #0d733e 100%);
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(18,153,84,0.3);
}

.supplier-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.supplier-meta-pills span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.supplier-meta-pills i {
    color: var(--primary-blue);
}

.supplier-rating-box {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff8eb;
    color: #ff9800;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #ffe8cc;
}

/* Hero CTA Buttons */
.supplier-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.btn-primary-blue {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(24,106,208,0.25);
    transition: all 0.3s ease;
}

.btn-primary-blue:hover {
    background-color: #1255aa !important;
    border-color: #1255aa !important;
    box-shadow: 0 6px 20px rgba(24,106,208,0.35);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37,211,102,0.25);
}

.btn-whatsapp:hover {
    background-color: #1ebe57 !important;
    border-color: #1ebe57 !important;
    transform: translateY(-2px);
}

.btn-save-toggle.active i {
    color: #e91e63 !important;
}

/* 2. Verification Card & Trust Score */
.trust-score-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 24px;
}

.trust-gauge-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-circle-svg {
    transform: rotate(-90deg);
}

.trust-score-text {
    position: absolute;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.trust-progress-bar-container {
    flex-grow: 1;
}

.verification-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.verification-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: #f8fbf9;
    border: 1px solid #e1eedc;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    transition: all 0.2s ease;
}

.verification-badge-item.unverified {
    background: #fffbfb;
    border-color: #fdeaea;
    color: var(--text-muted);
}

.verification-badge-item i {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--accent-green);
}

.verification-badge-item.unverified i {
    color: #ccc;
}

/* 3. About Section with Expandable height */
.about-desc-wrapper {
    position: relative;
    max-height: 180px;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.about-desc-wrapper.expanded {
    max-height: 1000px;
}

.about-desc-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.about-desc-wrapper.expanded::after {
    opacity: 0;
}

.read-more-btn {
    color: var(--primary-blue);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    border: none;
    background: none;
    font-size: 0.9rem;
}

/* 4. Product Cards Integration */
.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-img-wrapper {
    position: relative;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.verified-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(18, 153, 84, 0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.4;
    margin-bottom: 8px;
    height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.moq-text {
    font-size: 0.8rem;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.product-actions .btn {
    font-size: 0.8rem;
    padding: 8px 12px;
}

/* 5. Custom Gallery slider */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    height: 110px;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* 6. Review System styling */
.rating-summary-box {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.rating-huge {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
}

/* Star rating input helper */
.star-rating-interactive {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    font-size: 1.8rem;
}

.star-rating-interactive input {
    display: none;
}

.star-rating-interactive label {
    color: #ccc;
    cursor: pointer;
    transition: color 0.15s ease;
}

.star-rating-interactive input:checked ~ label,
.star-rating-interactive label:hover,
.star-rating-interactive label:hover ~ label {
    color: #ffc107;
}

/* 7. Sticky Right Sidebar Widgets */
.sidebar-box {
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-box-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 8px;
    display: inline-block;
}

.business-hour-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}

.business-hour-item:last-child {
    border-bottom: none;
}

/* 8. Sticky Mobile Bottom Action Bar */
.sticky-mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 10px 15px;
    display: none;
}

@media (max-width: 991px) {
    .sticky-mobile-action-bar {
        display: flex;
        gap: 8px;
        align-items: center;
    }
    
    body {
        padding-bottom: 75px !important; /* Leave space for bottom bar */
    }
}

/* Horizontal scrolling for similar suppliers */
.horizontal-scroll-row {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    scroll-behavior: smooth;
}

.horizontal-scroll-row::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll-row::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.horizontal-scroll-card {
    min-width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 15px;
}

.premium-strip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(255, 165, 0, 0.3);
}
