/* ========================================
   SUPPLIER PRODUCT PAGE - SieuMua247
   ======================================== */

/* Breadcrumb */
.breadcrumb-section {
    background: #f8fafc;
    padding: 12px 0;
}

.breadcrumb-nav {
    font-size: 13px;
    color: #64748b;
}

.breadcrumb-nav a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-nav span {
    margin: 0 8px;
}

.breadcrumb-nav .current {
    color: #1e293b;
    font-weight: 500;
}

/* Supplier Header */
.supplier-header {
    background: #fff;
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.supplier-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.supplier-logo {
    max-height: 100px;
}

.supplier-logo img {
    max-height: 100px;
    width: auto;
}

.supplier-logo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

.supplier-name {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.supplier-info {
    margin-top: 15px;
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.supplier-info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.supplier-info i {
    color: #3b82f6;
    margin-right: 6px;
}

/* Main Content Layout */
.supplier-content {
    background: #f1f5f9;
    padding: 20px 0 40px;
}

.supplier-layout {
    display: flex;
    gap: 20px;
}

/* Sidebar */
.supplier-sidebar {
    flex: 0 0 220px;
}

.sidebar-section {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3b82f6;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu li a {
    display: block;
    padding: 8px 10px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background: #eff6ff;
    color: #3b82f6;
}

/* Sidebar Banner */
.sidebar-banner {
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
}

.banner-placeholder {
    width: 350px;
    height: 1600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    border: 2px dashed #cbd5e1;
    background: #f1f5f9;
}

/* Products Area */
.supplier-products {
    flex: 1;
}

/* Toolbar */
.products-toolbar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-form-supplier {
    display: flex;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    flex: 0 0 300px;
}

.search-form-supplier input[type="text"] {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 13px;
    outline: none;
}

.search-form-supplier button {
    background: #fff;
    border: none;
    padding: 10px 15px;
    color: #64748b;
    cursor: pointer;
}

.search-form-supplier button:hover {
    color: #3b82f6;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.sort-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #475569;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.sort-btn:hover,
.sort-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

/* Product Grid - 4 columns */
.product-grid-supplier {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Product Card */
.product-card-supplier {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
}

.product-card-supplier:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    z-index: 2;
}

.product-image {
    display: block;
    padding-top: 100%;
    position: relative;
    background: #f8fafc;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-info {
    padding: 12px;
}

.product-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.product-title:hover {
    color: #3b82f6;
}

.product-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.product-rating i {
    color: #fbbf24;
    font-size: 11px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price .old-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-price .current-price {
    font-size: 15px;
    font-weight: 700;
    color: #f97316;
}

/* No Products */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
}

.no-products i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.no-products p {
    color: #64748b;
    font-size: 14px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.pagination-wrapper .pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper .pagination li a,
.pagination-wrapper .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #475569;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-wrapper .pagination li a:hover,
.pagination-wrapper .pagination li.active span {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.pagination-wrapper .pagination li.disabled span {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1199px) {
    .product-grid-supplier {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .supplier-layout {
        flex-direction: column;
    }
    
    .supplier-sidebar {
        flex: none;
        display: flex;
        gap: 15px;
    }
    
    .sidebar-section {
        flex: 1;
        margin-bottom: 0;
    }
    
    .sidebar-banner {
        display: none;
    }
    
    .product-grid-supplier {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .supplier-header {
        padding: 15px 0;
    }
    
    .supplier-logo-wrapper {
        gap: 10px;
    }
    
    .supplier-logo {
        max-height: 60px;
    }
    
    .supplier-logo img {
        max-height: 60px;
    }
    
    .supplier-name {
        font-size: 16px;
    }
    
    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form-supplier {
        flex: none;
        width: 100%;
    }
    
    .sort-options {
        flex-wrap: wrap;
    }
    
    .product-grid-supplier {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .supplier-sidebar {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .supplier-name {
        font-size: 20px;
    }
    
    .sort-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-title {
        font-size: 12px;
        height: 34px;
    }
    
    .product-price .current-price {
        font-size: 14px;
    }
}
